3939 runs-on : ${{ matrix.os }}
4040 strategy :
4141 matrix :
42- os : [ windows-2019, ubuntu-20.04, macos-11 ]
42+ os : [ windows-2019, ubuntu-20.04, macos-12 ]
4343 python-version : [ 3.7, 3.8, 3.9 ]
4444 tf-version : [2.7.0, 2.8.0, 2.9.0]
4545
@@ -51,17 +51,16 @@ jobs:
5151 python-version : ${{ matrix.python-version }}
5252
5353 - name : Download artifact
54- uses : actions/download-artifact@master
54+ uses : actions/download-artifact@v3
5555 with :
5656 name : " Python wheel"
5757
5858 - name : Install dependencies
59- run : |
60- pip install tensorflow==${{ matrix.tf-version }} protobuf==3.20.* opencv-python-headless scikit-image
61- pip install pytest
59+ run : pip install tensorflow==${{ matrix.tf-version }} protobuf==3.20.* opencv-python-headless scikit-image pytest
6260
6361 - name : Install wheel
64- run : pip install --find-links=${{github.workspace}} torchstain
62+ run : pip install --find-links=${{github.workspace}} torchstain-*
63+ shell : bash
6564
6665 - name : Run tests
6766 run : pytest -vs tests/test_tf.py
7170 runs-on : ${{ matrix.os }}
7271 strategy :
7372 matrix :
74- os : [ windows-2019, ubuntu-20.04, macos-11 ]
73+ os : [ windows-2019, ubuntu-20.04, macos-12 ]
7574 python-version : [ 3.6, 3.7, 3.8, 3.9 ]
7675 pytorch-version : [1.8.0, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0]
7776 exclude :
@@ -90,17 +89,16 @@ jobs:
9089 python-version : ${{ matrix.python-version }}
9190
9291 - name : Download artifact
93- uses : actions/download-artifact@master
92+ uses : actions/download-artifact@v3
9493 with :
9594 name : " Python wheel"
9695
9796 - name : Install dependencies
98- run : |
99- pip install torch==${{ matrix.pytorch-version }} torchvision opencv-python-headless scikit-image
100- pip install pytest
97+ run : pip install torch==${{ matrix.pytorch-version }} torchvision opencv-python-headless scikit-image pytest
10198
10299 - name : Install wheel
103- run : pip install --find-links=${{github.workspace}} torchstain
100+ run : pip install --find-links=${{github.workspace}} torchstain-*
101+ shell : bash
104102
105103 - name : Run tests
106104 run : pytest -vs tests/test_torch.py
0 commit comments