Skip to content

Commit 94cd723

Browse files
committed
package testing: wait for 30s on PyPi/TestPyPi
1 parent 329b18f commit 94cd723

2 files changed

Lines changed: 17 additions & 111 deletions

File tree

.github/actions/wait-for-pypi-version/action.yaml

Lines changed: 0 additions & 86 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
version: ${{ steps.extract-version.outputs.version }}
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929

3030
- name: Set up Python
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@v6
3232
with:
3333
python-version: "3.14"
3434

@@ -64,7 +64,7 @@ jobs:
6464
echo "Extracted version: $VERSION"
6565
6666
- name: Upload dist files
67-
uses: actions/upload-artifact@v4
67+
uses: actions/upload-artifact@v7
6868
with:
6969
name: dist-files
7070
path: dist/
@@ -76,12 +76,12 @@ jobs:
7676
needs: build
7777
steps:
7878
- name: Set up Python
79-
uses: actions/setup-python@v5
79+
uses: actions/setup-python@v6
8080
with:
8181
python-version: "3.14"
8282

8383
- name: Download dist files
84-
uses: actions/download-artifact@v4
84+
uses: actions/download-artifact@v8
8585
with:
8686
name: dist-files
8787
path: dist/
@@ -114,7 +114,7 @@ jobs:
114114
id-token: write # IMPORTANT: mandatory for trusted publishing
115115
steps:
116116
- name: Download dist files
117-
uses: actions/download-artifact@v4
117+
uses: actions/download-artifact@v8
118118
with:
119119
name: dist-files
120120
path: dist/
@@ -138,7 +138,7 @@ jobs:
138138
id-token: write # IMPORTANT: mandatory for trusted publishing
139139
steps:
140140
- name: Download dist files
141-
uses: actions/download-artifact@v4
141+
uses: actions/download-artifact@v8
142142
with:
143143
name: dist-files
144144
path: dist/
@@ -159,20 +159,16 @@ jobs:
159159
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
160160
steps:
161161
- name: Set up Python
162-
uses: actions/setup-python@v5
162+
uses: actions/setup-python@v6
163163
with:
164164
python-version: "3.14"
165165

166166
- name: Checkout repository for actions
167-
uses: actions/checkout@v4
168-
169-
- name: Wait for version to be available on TestPyPI
170-
uses: ./.github/actions/wait-for-pypi-version
171-
with:
172-
repository: testpypi
173-
package: GridDataFormats
174-
version: ${{ needs.build.outputs.version }}
167+
uses: actions/checkout@v6
175168

169+
- name: Wait for version to be available on TestPyPI (30 seconds)
170+
run: sleep 30
171+
176172
- name: Install from TestPyPI
177173
run: |
178174
python -m pip install --upgrade pip
@@ -199,20 +195,16 @@ jobs:
199195
(github.event_name == 'release' && github.event.action == 'published')
200196
steps:
201197
- name: Set up Python
202-
uses: actions/setup-python@v5
198+
uses: actions/setup-python@v6
203199
with:
204200
python-version: "3.14"
205201

206202
- name: Checkout repository for actions
207-
uses: actions/checkout@v4
208-
209-
- name: Wait for version to be available on PyPI
210-
uses: ./.github/actions/wait-for-pypi-version
211-
with:
212-
repository: pypi
213-
package: GridDataFormats
214-
version: ${{ needs.build.outputs.version }}
203+
uses: actions/checkout@v6
215204

205+
- name: Wait for version to be available on PyPI (30 seconds)
206+
run: sleep 30
207+
216208
- name: Install from PyPI
217209
run: |
218210
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)