Skip to content

Commit

Permalink
Update outdated versions in GitHub Actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Sep 13, 2024
1 parent affc39b commit b912aee
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
python-impl: PyPy
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
Expand All @@ -74,21 +74,21 @@ jobs:
- test
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build wheel
run: python -m build --wheel --outdir dist
- name: Store built wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dist
name: wheel
path: dist/*

sdist:
Expand All @@ -98,21 +98,21 @@ jobs:
- test
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build distribution
run: python -m build --sdist --outdir dist
- name: Store built wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dist
name: sdist
path: dist/*

upload:
Expand All @@ -126,11 +126,18 @@ jobs:
- sdist
- wheel
steps:
- name: Download built distributions
uses: actions/download-artifact@v2
- name: Download source distribution
uses: actions/download-artifact@v4
with:
name: dist
path: dist
name: sdist
path: dist/
merge-multiple: true
- name: Download wheel distributions
uses: actions/download-artifact@v4
with:
pattern: wheel
path: dist/
merge-multiple: true
- name: Publish distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

Expand All @@ -140,10 +147,12 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/v')"
name: Release
needs: upload
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: Release a Changelog
uses: rasmus-saks/release-a-changelog-action@v1.0.1
uses: rasmus-saks/release-a-changelog-action@v1.2.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit b912aee

Please sign in to comment.