Skip to content

Commit 80afbd2

Browse files
orbeckstIAlibay
andcommitted
update deployment workflow
- run on Python 3.14 - test deployed packages on ubuntu and macos latest fail-fast: false to allow others to run so that we can see tests on different OSs succeeding/failing - concurrency: allow push/tag and release runs to both complete Co-authored-by: Irfan Alibay <ialibay@mdanalysis.org>
1 parent d38bbd8 commit 80afbd2

File tree

1 file changed

+24
-37
lines changed

1 file changed

+24
-37
lines changed

.github/workflows/deploy.yaml

Lines changed: 24 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
concurrency:
1212
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}"
13-
cancel-in-progress: true
13+
cancel-in-progress: false
1414

1515
defaults:
1616
run:
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Python
2929
uses: actions/setup-python@v5
3030
with:
31-
python-version: "3.x"
31+
python-version: "3.14"
3232

3333
- name: Install build dependencies
3434
run: |
@@ -50,31 +50,6 @@ jobs:
5050
path: dist/
5151
retention-days: 1
5252

53-
test-install:
54-
name: Test package installation
55-
runs-on: ubuntu-latest
56-
needs: build
57-
steps:
58-
- name: Set up Python
59-
uses: actions/setup-python@v5
60-
with:
61-
python-version: "3.x"
62-
63-
- name: Download dist files
64-
uses: actions/download-artifact@v4
65-
with:
66-
name: dist-files
67-
path: dist/
68-
69-
- name: Install package
70-
run: |
71-
python -m pip install --upgrade pip
72-
pip install dist/*.whl
73-
74-
- name: Run tests
75-
run: |
76-
python -c "import gridData; print(f'Package {gridData.__version__} imported successfully')"
77-
7853
test-pytest:
7954
name: Run tests
8055
runs-on: ubuntu-latest
@@ -83,7 +58,7 @@ jobs:
8358
- name: Set up Python
8459
uses: actions/setup-python@v5
8560
with:
86-
python-version: "3.x"
61+
python-version: "3.14"
8762

8863
- name: Download dist files
8964
uses: actions/download-artifact@v4
@@ -97,14 +72,18 @@ jobs:
9772
WHEEL_FILE=$(ls dist/*.whl)
9873
pip install "$WHEEL_FILE"[test]
9974
100-
- name: Run tests
75+
- name: Test import
76+
run: |
77+
python -c "import gridData; print(f'Package {gridData.__version__} imported successfully')"
78+
79+
- name: Run basic tests
10180
run: |
10281
pytest --verbose --pyargs gridData
10382
10483
deploy-testpypi:
10584
name: Deploy to TestPyPI
10685
runs-on: ubuntu-latest
107-
needs: [build, test-install, test-pytest]
86+
needs: [build, test-pytest]
10887
if: |
10988
github.repository == 'MDAnalysis/GridDataFormats' &&
11089
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
@@ -121,14 +100,14 @@ jobs:
121100
path: dist/
122101

123102
- name: Publish to TestPyPI
124-
uses: pypa/gh-action-pypi-publish@v1.12.4
103+
uses: pypa/gh-action-pypi-publish@v1.13.0
125104
with:
126105
repository-url: https://test.pypi.org/legacy/
127106

128107
deploy-pypi:
129108
name: Deploy to PyPI
130109
runs-on: ubuntu-latest
131-
needs: [build, test-install, test-pytest]
110+
needs: [build, test-pytest]
132111
if: |
133112
github.repository == 'MDAnalysis/GridDataFormats' &&
134113
(github.event_name == 'release' && github.event.action == 'published')
@@ -145,11 +124,15 @@ jobs:
145124
path: dist/
146125

147126
- name: Publish to PyPI
148-
uses: pypa/gh-action-pypi-publish@v1.12.4
127+
uses: pypa/gh-action-pypi-publish@v1.13.0
149128

150129
test-deployed-testpypi:
151130
name: Test deployed package (TestPyPI)
152-
runs-on: ubuntu-latest
131+
runs-on: ${{ matrix.os }}
132+
strategy:
133+
fail-fast: false
134+
matrix:
135+
os: [ubuntu-latest, macos-latest]
153136
needs: deploy-testpypi
154137
if: |
155138
github.repository == 'MDAnalysis/GridDataFormats' &&
@@ -158,7 +141,7 @@ jobs:
158141
- name: Set up Python
159142
uses: actions/setup-python@v5
160143
with:
161-
python-version: "3.x"
144+
python-version: "3.14"
162145

163146
- name: Install from TestPyPI
164147
run: |
@@ -175,7 +158,11 @@ jobs:
175158
176159
test-deployed-pypi:
177160
name: Test deployed package (PyPI)
178-
runs-on: ubuntu-latest
161+
runs-on: ${{ matrix.os }}
162+
strategy:
163+
fail-fast: false
164+
matrix:
165+
os: [ubuntu-latest, macos-latest]
179166
needs: deploy-pypi
180167
if: |
181168
github.repository == 'MDAnalysis/GridDataFormats' &&
@@ -184,7 +171,7 @@ jobs:
184171
- name: Set up Python
185172
uses: actions/setup-python@v5
186173
with:
187-
python-version: "3.x"
174+
python-version: "3.14"
188175

189176
- name: Install from PyPI
190177
run: |

0 commit comments

Comments
 (0)