Skip to content

Commit

Permalink
Update GitHub actions to their latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Mar 11, 2024
1 parent c566828 commit c0ca959
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install packages
Expand All @@ -31,7 +31,7 @@ jobs:
- '3.8'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install OS Packages
Expand All @@ -51,23 +51,23 @@ jobs:
coverage run -m unittest discover -v
coverage xml
- name: Upload coverage report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

package-source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Build source package
run: |
pip install -U build
python -m build --sdist
- name: Upload source package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-source
path: dist/

package-wheel:
Expand All @@ -92,12 +92,12 @@ jobs:
arch: x86
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Add msbuild to PATH
if: matrix.os == 'windows-latest'
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
Expand All @@ -117,19 +117,19 @@ jobs:
pip install cibuildwheel
cibuildwheel --output-dir dist
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-wheel-${{ matrix.os }}-${{ matrix.arch }}
path: dist/

publish:
runs-on: ubuntu-latest
needs: [lint, test, package-source, package-wheel]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist
merge-multiple: true
path: dist/
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
Expand Down

0 comments on commit c0ca959

Please sign in to comment.