Skip to content

Commit

Permalink
chore(ci): update workflow actions to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dairiki committed Sep 4, 2024
1 parent f2fcae7 commit 13b8bae
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
- run: pip install tox tox-gh-actions
- run: tox
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage-data
name: coverage-data-${{ matrix.python-version }}
path: .coverage.*
include-hidden-files: true
retention-days: 1

coverage:
Expand All @@ -36,12 +37,13 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: python -m pip install --upgrade pip
- run: pip install coverage[toml]
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: coverage-data
pattern: coverage-data-*
merge-multiple: true
- name: Test coverage
run: |
coverage combine
Expand All @@ -50,8 +52,8 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pre-commit
Expand All @@ -64,8 +66,8 @@ jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
- run: pdm install
- run: pdm run mypy

Expand All @@ -79,8 +81,8 @@ jobs:
name: pypi
url: https://pypi.org/p/lektor-index-pages/
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pdm-project/setup-pdm@v3
- uses: pdm-project/setup-pdm@v4
- run: pdm publish

0 comments on commit 13b8bae

Please sign in to comment.