Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
actions:
patterns:
- "*"
34 changes: 15 additions & 19 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
fetch-depth: 0
- name: Build sdist
run: pipx run build -s
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sdist
name: source-dist
path: ./dist/*.tar.gz

build-wheel:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- uses: actions/setup-python@v3

- name: Update pip/pipx
run: pip install --upgrade pip pipx
run: python -m pip install --upgrade pip pipx

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

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

test-sdist:
name: Test sdist
needs: [build-sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: sdist
name: source-dist
path: ./dist
- uses: actions/setup-python@v4
with:
Expand All @@ -127,16 +127,13 @@ jobs:
runs-on: ubuntu-latest
needs: [test-sdist, build-wheel]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: dist/
pattern: '*-dist'
merge-multiple: true
- name: Check artifacts
run: ls -lR
- name: Consolidate and re-check
run: |
mv dist/*/*.{tar.gz,whl} dist
rmdir dist/*/
ls -lR
run: ls -lR dist/
- run: pipx run twine check dist/*

publish:
Expand All @@ -145,13 +142,12 @@ jobs:
needs: [pre-publish]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: dist/
- name: Consolidate artifacts
run: |
mv dist/*/*.{tar.gz,whl} dist
rmdir dist/*/
pattern: '*'
merge-multiple: true
- run: ls -lR dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
Loading