Skip to content

Commit 1ae5cc0

Browse files
committed
CI: fix artifact issue; minor updates
1 parent 84d6275 commit 1ae5cc0

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ jobs:
6969
- name: Build wheels
7070
uses: pypa/cibuildwheel@v2.22.0
7171
with:
72-
output-dir: dist
72+
output-dir: dist-wheel-${{ matrix.os }}
7373

74-
- uses: actions/upload-artifact@v3
74+
- uses: actions/upload-artifact@v4
7575
with:
76-
path: ./dist/*.whl
76+
name: dist-wheel-${{ matrix.os }}
77+
path: ./dist-wheel-${{ matrix.os }}/*.whl
7778

7879
build_sdist:
7980
name: sdist on ${{ matrix.os }} with py ${{ matrix.ver.py }} numpy${{ matrix.ver.np }}
@@ -84,20 +85,20 @@ jobs:
8485
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
8586
# https://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg
8687
ver:
87-
- {py: '3.8', np: '==1.20.0'}
88-
- {py: '3.9', np: '==1.20.0'}
89-
- {py: '3.10', np: '==1.21.6'}
90-
- {py: '3.11', np: '==1.23.2'}
91-
- {py: '3.12', np: '==1.26.2'}
92-
- {py: '3.13', np: '==2.2.1'}
93-
- {py: '3.13', np: '>=2.2.1'}
88+
- { py: "3.8", np: "==1.20.0" }
89+
- { py: "3.9", np: "==1.20.0" }
90+
- { py: "3.10", np: "==1.21.6" }
91+
- { py: "3.11", np: "==1.23.2" }
92+
- { py: "3.12", np: "==1.26.2" }
93+
- { py: "3.13", np: "==2.1.0" }
94+
- { py: "3.13", np: ">=2.1.0" }
9495
exclude:
9596
- os: macos-14
96-
ver: {py: '3.8', np: '==1.20.0'}
97+
ver: { py: "3.8", np: "==1.20.0" }
9798
- os: macos-14
98-
ver: {py: '3.9', np: '==1.20.0'}
99+
ver: { py: "3.9", np: "==1.20.0" }
99100
- os: macos-14
100-
ver: {py: '3.10', np: '==1.21.6'}
101+
ver: { py: "3.10", np: "==1.21.6" }
101102
steps:
102103
- uses: actions/checkout@v4
103104
with:
@@ -112,7 +113,6 @@ jobs:
112113
run: |
113114
python -m pip install --upgrade pip
114115
pip install build
115-
pip install build
116116
117117
- name: Install GSTools-Cython
118118
env:
@@ -128,12 +128,13 @@ jobs:
128128
- name: Build sdist
129129
run: |
130130
# PEP 517 package builder from pypa
131-
python -m build --sdist --outdir dist .
131+
python -m build --sdist --outdir dist-sdist .
132132
133-
- uses: actions/upload-artifact@v3
133+
- uses: actions/upload-artifact@v4
134134
if: matrix.os == 'ubuntu-latest' && matrix.ver.py == '3.11'
135135
with:
136-
path: dist/*.tar.gz
136+
name: dist-sdist
137+
path: dist-sdist/*.tar.gz
137138

138139
coverage:
139140
name: coverage
@@ -173,9 +174,10 @@ jobs:
173174
runs-on: ubuntu-latest
174175

175176
steps:
176-
- uses: actions/download-artifact@v3
177+
- uses: actions/download-artifact@v4
177178
with:
178-
name: artifact
179+
pattern: dist-*
180+
merge-multiple: true
179181
path: dist
180182

181183
- name: Publish to Test PyPI

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ classifiers = [
3838
"Programming Language :: Python :: 3.10",
3939
"Programming Language :: Python :: 3.11",
4040
"Programming Language :: Python :: 3.12",
41+
"Programming Language :: Python :: 3.13",
4142
"Topic :: Scientific/Engineering",
4243
"Topic :: Scientific/Engineering :: GIS",
4344
"Topic :: Scientific/Engineering :: Hydrology",

0 commit comments

Comments
 (0)