From df92e33b49977ab4950b5ca97e3299c077352d0e Mon Sep 17 00:00:00 2001 From: Jeff Dairiki Date: Wed, 4 Sep 2024 22:43:00 -0700 Subject: [PATCH] chore(ci): update workflow actions to latest versions --- .github/workflows/publish-to-pypi.yml | 2 +- .github/workflows/tests.yml | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 6010d64..d062242 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -14,7 +14,7 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Need full history for setuptools_scm to work fetch-depth: 0 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0e69a52..144a8c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,9 +18,9 @@ jobs: - '3.12' - 'pypy-3.10' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -29,10 +29,11 @@ jobs: pip install tox tox-gh-actions - name: Test with tox 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: @@ -40,17 +41,18 @@ jobs: if: always() runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | python -m pip install --upgrade pip pip install tox - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: coverage-data + pattern: coverage-data-* + merge-multiple: true - name: Test coverage run: tox -e cover - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: htmlcov path: htmlcov @@ -59,7 +61,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | python -m pip install --upgrade pip