Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Deegue committed Mar 14, 2024
1 parent bdd28d2 commit 83050be
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/workflow_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,53 @@ on:
type: string
default: 'pr'

setup-test:

name: setup-test
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
architecture: 'x64'

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
- name: Install dependencies for tests
run: |
python -m pip install --upgrade pip
pip install .[cpu] --extra-index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
# Dynamic link oneCCL and Intel MPI libraries
source $(python -c "import oneccl_bindings_for_pytorch as torch_ccl; print(torch_ccl.cwd)")/env/setvars.sh
# Additional libraries required for pytest
pip install -r ./tests/requirements.txt
- name: Start Ray Cluster
run: |
ray start --head
- name: Run Test for Getting Started
run: |
./tests/test_getting_started.sh
- name: Run Test for Setup
run: |
./tests/test_setup.sh CPU
jobs:
bare-test:

Expand Down Expand Up @@ -114,50 +161,3 @@ jobs:
TARGET=${{steps.target.outputs.target}}
cid=$(docker ps -q --filter "name=${TARGET}")
if [[ ! -z "$cid" ]]; then docker stop $cid && docker rm $cid; fi
setup-test:

name: setup-test
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
architecture: 'x64'

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
- name: Install dependencies for tests
run: |
python -m pip install --upgrade pip
pip install .[cpu] --extra-index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
# Dynamic link oneCCL and Intel MPI libraries
source $(python -c "import oneccl_bindings_for_pytorch as torch_ccl; print(torch_ccl.cwd)")/env/setvars.sh
# Additional libraries required for pytest
pip install -r ./tests/requirements.txt
- name: Start Ray Cluster
run: |
ray start --head
- name: Run Test for Getting Started
run: |
./tests/test_getting_started.sh
- name: Run Test for Setup
run: |
./tests/test_setup.sh CPU

0 comments on commit 83050be

Please sign in to comment.