Skip to content

Commit

Permalink
Moved installation of torch
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Jan 13, 2025
1 parent 06ac332 commit 44d46e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/run_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ jobs:
cd ..
if: matrix.shard == 1

- name: Test installed version of bioptim
run: |
python setup.py install
cd
python -c "import bioptim"
if: matrix.shard == 1

- name: Install pytorch on Linux
run: |
pip install torch>=2.0
Expand All @@ -66,6 +59,13 @@ jobs:
cd ../..
if: matrix.shard == 3

- name: Test installed version of bioptim
run: |
python setup.py install
cd
python -c "import bioptim"
if: matrix.shard == 1

- name: Run tests with code coverage
run: pytest -v --color=yes --cov-report term-missing --cov=bioptim --cov-report=xml:coverage.xml tests/shard${{ matrix.shard }}
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit 44d46e3

Please sign in to comment.