From bcbc3591c1ae4f74d0c334d2a0d97aa5a44a0314 Mon Sep 17 00:00:00 2001 From: Mike Hendricks Date: Tue, 3 Sep 2024 18:55:27 -0700 Subject: [PATCH] Update deprecated actions and fix missing setuptools dependency --- .github/workflows/python-release.yml | 4 ++-- .../python-static-analysis-and-test.yml | 23 +++++++++++-------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 7334eae..8bcc157 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -11,12 +11,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.x" diff --git a/.github/workflows/python-static-analysis-and-test.yml b/.github/workflows/python-static-analysis-and-test.yml index 9fccccb..e8df03d 100644 --- a/.github/workflows/python-static-analysis-and-test.yml +++ b/.github/workflows/python-static-analysis-and-test.yml @@ -17,10 +17,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" @@ -55,10 +55,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} @@ -70,12 +70,14 @@ jobs: - name: Run Tox run: | tox -e begin,py + dir - name: Upload coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: coverage + name: coverage-${{ matrix.os }}-${{ matrix.python }} path: .coverage.* + include-hidden-files: true retention-days: 1 coverage: @@ -91,10 +93,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" @@ -109,9 +111,10 @@ jobs: tox -e begin - name: Download coverage artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: coverage + pattern: coverage-* + merge-multiple: true # Tox runs `coverage combine` and `coverage xml` - name: Combine coverage and report