Skip to content

Commit

Permalink
Upgrade workflow dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasValvekens committed Nov 17, 2024
1 parent f31c18b commit 877743f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: build
run: python -m build
- name: Upload dist artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: certomancer-dist
path: dist/
Expand All @@ -44,7 +44,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Download dist artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: certomancer-dist
path: dist/
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Test with pytest
run: python -m pytest --cov=./ --cov-report=xml:python-${{ matrix.python-version }}-coverage.xml
- name: Stash coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
path: "*-coverage.xml"
Expand All @@ -72,15 +72,15 @@ jobs:
needs: build
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Download dist artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: certomancer-dist
path: dist/
Expand All @@ -99,7 +99,7 @@ jobs:
python -m pytest -m "not needcrypto" --cov=./ \
--cov-report=xml:python-minimal-${{ matrix.python-version }}-coverage.xml
- name: Stash coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
path: "*-coverage.xml"
Expand All @@ -110,7 +110,7 @@ jobs:
# checkout necessary to ensure the uploaded report contains the correct paths
- uses: actions/checkout@v3
- name: Retrieve coverage reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage
path: ./reports/
Expand All @@ -122,6 +122,6 @@ jobs:
env_vars: OS,PYTHON
name: codecov-umbrella
- name: Clean up coverage reports
uses: GeekyEggo/delete-artifact@v2
uses: GeekyEggo/delete-artifact@v5
with:
name: coverage
name: coverage-*
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
exit 1
fi
cat "$GITHUB_OUTPUT"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get version information
id: getversion
run: |
Expand All @@ -51,7 +51,7 @@ jobs:
env:
VERSION: ${{ steps.getversion.outputs.version }}
- name: Upload release body
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release-body
path: release.md
Expand All @@ -68,12 +68,12 @@ jobs:
discussions: write
steps:
- name: Download dist artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: certomancer-dist
path: dist/
- name: Download release body
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: release-body
path: release-body
Expand All @@ -82,17 +82,14 @@ jobs:
with:
repository-url: ${{ vars.REPOSITORY_URL }}
- name: Sign with sigstore
uses: sigstore/gh-action-sigstore-python@v1.2.3
uses: sigstore/gh-action-sigstore-python@v3.0.0
with:
inputs: ./dist/*
# useful to inspect workflow artifacts in test runs
upload-signing-artifacts: true
# Append only the .sigstore bundle,
# the .sig suffix conflicts with my own GPG signatures
bundle-only: true
- name: Create GitHub release
if: needs.extract-params.outputs.publish-env == 'release' && startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.whl
Expand Down

0 comments on commit 877743f

Please sign in to comment.