Skip to content

Commit 10ee40e

Browse files
authored
Merge pull request #225 from larsoner/dependabot
MAINT: Add dependabot and fix outdated action
2 parents 4d2e165 + 40f3196 commit 10ee40e

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

Diff for: .github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

Diff for: .github/workflows/wheels.yml

+15-20
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
fetch-depth: 0
4545
- name: Build sdist
4646
run: pipx run build -s
47-
- uses: actions/upload-artifact@v3
47+
- uses: actions/upload-artifact@v4
4848
with:
49-
name: sdist
49+
name: source-dist
5050
path: ./dist/*.tar.gz
5151

5252
build-wheel:
@@ -82,7 +82,7 @@ jobs:
8282
- uses: actions/setup-python@v3
8383

8484
- name: Update pip/pipx
85-
run: pip install --upgrade pip pipx
85+
run: python -m pip install --upgrade pip pipx
8686

8787
# For aarch64 support
8888
# https://cibuildwheel.pypa.io/en/stable/faq/#emulation
@@ -96,19 +96,19 @@ jobs:
9696
env:
9797
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
9898

99-
- uses: actions/upload-artifact@v3
99+
- uses: actions/upload-artifact@v4
100100
with:
101-
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
101+
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}-dist
102102
path: ./wheelhouse/*.whl
103103

104104
test-sdist:
105105
name: Test sdist
106106
needs: [build-sdist]
107107
runs-on: ubuntu-latest
108108
steps:
109-
- uses: actions/download-artifact@v3
109+
- uses: actions/download-artifact@v4
110110
with:
111-
name: sdist
111+
name: source-dist
112112
path: ./dist
113113
- uses: actions/setup-python@v4
114114
with:
@@ -127,16 +127,12 @@ jobs:
127127
runs-on: ubuntu-latest
128128
needs: [test-sdist, build-wheel]
129129
steps:
130-
- uses: actions/download-artifact@v3
130+
- uses: actions/download-artifact@v4
131131
with:
132132
path: dist/
133-
- name: Check artifacts
134-
run: ls -lR
135-
- name: Consolidate and re-check
136-
run: |
137-
mv dist/*/*.{tar.gz,whl} dist
138-
rmdir dist/*/
139-
ls -lR
133+
pattern: '*-dist'
134+
merge-multiple: true
135+
- run: ls -lR dist/
140136
- run: pipx run twine check dist/*
141137

142138
publish:
@@ -145,13 +141,12 @@ jobs:
145141
needs: [pre-publish]
146142
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
147143
steps:
148-
- uses: actions/download-artifact@v3
144+
- uses: actions/download-artifact@v4
149145
with:
150146
path: dist/
151-
- name: Consolidate artifacts
152-
run: |
153-
mv dist/*/*.{tar.gz,whl} dist
154-
rmdir dist/*/
147+
pattern: '*-dist'
148+
merge-multiple: true
149+
- run: ls -lR dist/
155150
- uses: pypa/gh-action-pypi-publish@release/v1
156151
with:
157152
user: __token__

0 commit comments

Comments
 (0)