Skip to content

Commit

Permalink
Test on Python 3.12 (#88)
Browse files Browse the repository at this point in the history
* test on python 3.12

* black

* CI: only install CPU wheels for torch

* install torch first

* install torchvision together with torch

* bumping monai

---------

Co-authored-by: Eduardo Hirata-Miyasaki <[email protected]>
  • Loading branch information
ziw-liu and edyoshikun committed Jun 18, 2024
1 parent 6282f0d commit 3b35648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
src: "viscy"

test:
name: Test
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -30,6 +31,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Install cpu wheels only to speed up the build
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install ".[metrics,dev]"
- name: Test with pytest
run: pytest -v
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"timm>=0.9.5",
"tensorboard>=2.13.0",
"lightning>=2.0.1",
"monai>=1.2.0",
"monai>=1.3.1",
"jsonargparse[signatures]>=4.20.1",
"scikit-image",
"matplotlib",
Expand Down

0 comments on commit 3b35648

Please sign in to comment.