Skip to content

Commit c3a5260

Browse files
committed
Better solution for installing patch versions; add update to utility functions in 'test_module.py'
1 parent 42dcb4e commit c3a5260

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
python: ["3.7", "3.8", "3.9"]
16-
torch: ["1.7.*", "1.8.*", "1.9.*", "1.10.*"]
16+
torch: ["1.7", "1.8", "1.9", "1.10"]
1717

1818
steps:
1919
- name: Checkout
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: Install Package
2828
run: |
29-
pip install torch==${{ matrix.torch }}
29+
pip install torch~=${{ matrix.torch }}.0
3030
pip install .[test]
3131
3232
- name: Test

tests/test_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import torch.nn.functional as f
66

77
from fft_conv_pytorch.fft_conv import _FFTConv
8-
from tests.utils import _assert_almost_equal, _gcd
8+
from fft_conv_pytorch.utils import _assert_almost_equal, _gcd
99

1010

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

0 commit comments

Comments
 (0)