Skip to content

Commit

Permalink
Better solution for installing patch versions; add update to utility …
Browse files Browse the repository at this point in the history
…functions in 'test_module.py'
  • Loading branch information
fkodom committed Jan 28, 2022
1 parent 42dcb4e commit c3a5260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
python: ["3.7", "3.8", "3.9"]
torch: ["1.7.*", "1.8.*", "1.9.*", "1.10.*"]
torch: ["1.7", "1.8", "1.9", "1.10"]

steps:
- name: Checkout
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Install Package
run: |
pip install torch==${{ matrix.torch }}
pip install torch~=${{ matrix.torch }}.0
pip install .[test]
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import torch.nn.functional as f

from fft_conv_pytorch.fft_conv import _FFTConv
from tests.utils import _assert_almost_equal, _gcd
from fft_conv_pytorch.utils import _assert_almost_equal, _gcd


@pytest.mark.parametrize("in_channels", [2, 3])
Expand Down

0 comments on commit c3a5260

Please sign in to comment.