Skip to content

Commit 841e89e

Browse files
Merge pull request #52 from andreped/whl-install-fix
Use shell: bash when installing wheels in CIs
2 parents 33498a2 + a2c885e commit 841e89e

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ jobs:
1515
python-version: '3.x'
1616

1717
- name: Install deps
18-
run: |
19-
pip install setuptools wheel
18+
run: pip install setuptools wheel
2019

2120
- name: Build wheels
2221
run: python setup.py sdist bdist_wheel

.github/workflows/tests_full.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ jobs:
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
@@ -95,12 +94,11 @@ jobs:
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

.github/workflows/tests_quick.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ jobs:
4848
name: "Python wheel"
4949

5050
- name: Install dependencies
51-
run: |
52-
pip install tensorflow protobuf==3.20.* opencv-python-headless scikit-image
53-
pip install pytest
51+
run: pip install tensorflow protobuf==3.20.* opencv-python-headless scikit-image pytest
5452

5553
- name: Install wheel
56-
run: pip install --find-links=${{github.workspace}} torchstain
54+
run: pip install --find-links=${{github.workspace}} torchstain-*
55+
shell: bash
5756

5857
- name: Run tests
5958
run: pytest -vs tests/test_tf.py
@@ -75,12 +74,11 @@ jobs:
7574
name: "Python wheel"
7675

7776
- name: Install dependencies
78-
run: |
79-
pip install torch torchvision opencv-python-headless scikit-image
80-
pip install pytest
77+
run: pip install torch torchvision opencv-python-headless scikit-image pytest
8178

8279
- name: Install wheel
83-
run: pip install --find-links=${{github.workspace}} torchstain
80+
run: pip install --find-links=${{github.workspace}} torchstain-*
81+
shell: bash
8482

8583
- name: Run tests
8684
run: pytest -vs tests/test_torch.py

0 commit comments

Comments
 (0)