Skip to content

Commit

Permalink
check versions
Browse files Browse the repository at this point in the history
  • Loading branch information
leifdenby committed Jun 3, 2024
1 parent fb8ef23 commit 51b0a0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci-pdm-install-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
pdm run python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
# check that the CPU version is installed
- name: Print and check torch version
run: |
pdm run python -c "import torch; print(torch.__version__)"
pdm run python -c "import torch; assert torch.__version__.endswith('+cpu')"
- name: Install package (including dev dependencies)
run: |
pdm install
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci-pip-install-and-test-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
python -m pip install .
python -m pip install pytest
- name: Print and check torch version
run: |
python -c "import torch; print(torch.__version__)"
python -c "import torch; assert not torch.__version__.endswith('+cpu')"
- name: Run tests
run: |
python -m pytest
5 changes: 5 additions & 0 deletions .github/workflows/ci-pip-install-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
python -m pip install .
python -m pip install pytest
- name: Print and check torch version
run: |
pdm run python -c "import torch; print(torch.__version__)"
pdm run python -c "import torch; assert torch.__version__.endswith('+cpu')"
- name: Run tests
run: |
python -m pytest

0 comments on commit 51b0a0b

Please sign in to comment.