Skip to content

Commit e544dc4

Browse files
committed
don't use bash conditionals
1 parent bd246b6 commit e544dc4

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

.github/workflows/tests.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,33 +49,39 @@ jobs:
4949
python-version: ${{ matrix.python-version }}
5050
activate-environment: true
5151

52-
- name: Install dependencies
52+
- name: Install dependencies (Python 3.14)
53+
if: matrix.python-version == '3.14'
54+
run: |
55+
uv pip install --pre -r requirements-dev.txt
56+
57+
- name: Install dependencies (other Python versions)
58+
if: matrix.python-version != '3.14'
5359
run: |
54-
if [ "${{ matrix.python-version }}" = "3.14" ]; then
55-
uv pip install --pre -r requirements-dev.txt
56-
else
57-
uv pip install -r requirements-dev.txt
58-
fi
60+
uv pip install -r requirements-dev.txt
5961
6062
- name: Run mocked tests
6163
run: |
6264
make test
6365
64-
- name: Build distribution and test installation
66+
- name: Build distribution and test installation (Python 3.14)
67+
if: matrix.python-version == '3.14'
68+
shell: bash
69+
run: |
70+
make dist
71+
uv pip install --pre cloudpathlib@$(find dist -name 'cloudpathlib*.whl') --no-deps --force-reinstall
72+
python -c "import cloudpathlib"
73+
uv pip install --pre cloudpathlib@$(find dist -name 'cloudpathlib*.tar.gz') --no-deps --force-reinstall
74+
python -c "import cloudpathlib"
75+
76+
- name: Build distribution and test installation (other Python versions)
77+
if: matrix.python-version != '3.14'
6578
shell: bash
6679
run: |
6780
make dist
68-
if [ "${{ matrix.python-version }}" = "3.14" ]; then
69-
uv pip install --pre cloudpathlib@$(find dist -name 'cloudpathlib*.whl') --no-deps --force-reinstall
70-
python -c "import cloudpathlib"
71-
uv pip install --pre cloudpathlib@$(find dist -name 'cloudpathlib*.tar.gz') --no-deps --force-reinstall
72-
python -c "import cloudpathlib"
73-
else
74-
uv pip install cloudpathlib@$(find dist -name 'cloudpathlib*.whl') --no-deps --force-reinstall
75-
python -c "import cloudpathlib"
76-
uv pip install cloudpathlib@$(find dist -name 'cloudpathlib*.tar.gz') --no-deps --force-reinstall
77-
python -c "import cloudpathlib"
78-
fi
81+
uv pip install cloudpathlib@$(find dist -name 'cloudpathlib*.whl') --no-deps --force-reinstall
82+
python -c "import cloudpathlib"
83+
uv pip install cloudpathlib@$(find dist -name 'cloudpathlib*.tar.gz') --no-deps --force-reinstall
84+
python -c "import cloudpathlib"
7985
8086
- name: Upload coverage to codecov
8187
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)