From 13b8baeb0fe77a4619fc7af8e964fc39d4a0dced Mon Sep 17 00:00:00 2001 From: Jeff Dairiki Date: Wed, 4 Sep 2024 12:48:51 -0700 Subject: [PATCH] chore(ci): update workflow actions to latest versions --- .github/workflows/ci.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b686c74..643eb6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 @@ -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 @@ -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 @@ -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