Skip to content

MAINT: Add dependabot and fix outdated action #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all 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:
- "*"
35 changes: 15 additions & 20 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,12 @@ jobs:
runs-on: ubuntu-latest
needs: [test-sdist, build-wheel]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: dist/
- name: Check artifacts
run: ls -lR
- name: Consolidate and re-check
run: |
mv dist/*/*.{tar.gz,whl} dist
rmdir dist/*/
ls -lR
pattern: '*-dist'
merge-multiple: true
- run: ls -lR dist/
- run: pipx run twine check dist/*

publish:
Expand All @@ -145,13 +141,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: '*-dist'
merge-multiple: true
- run: ls -lR dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
Loading