From bb3ca3896069c6b910a20d4b1844a8cddfb1eec5 Mon Sep 17 00:00:00 2001 From: Dominic Shelton Date: Mon, 15 Jul 2024 17:08:19 +1000 Subject: [PATCH] Update github actions --- .github/workflows/basic_test.yaml | 16 +++++++++------- .github/workflows/basic_test_skipped.yaml | 3 ++- .github/workflows/codeql.yaml | 8 ++++---- .github/workflows/deploy-docs.yaml | 2 +- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/basic_test.yaml b/.github/workflows/basic_test.yaml index 5419e9f91..70d0ef890 100644 --- a/.github/workflows/basic_test.yaml +++ b/.github/workflows/basic_test.yaml @@ -21,26 +21,27 @@ jobs: build: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: - ubuntu-latest - macos-latest - windows-latest python-version: - - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" + - "3.12" steps: # Only check out HEAD. We don't need the full history. - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -48,11 +49,12 @@ jobs: # Python versions on all OSes. - name: Get pip cache dir id: pip-cache + shell: bash run: | - echo "::set-output name=dir::$(pip cache dir)" + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT - name: Setup pip cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pip-cache.outputs.dir }} key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }} @@ -90,9 +92,9 @@ jobs: twine check dist/* - name: Upload pytest test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: pytest-results-${{ matrix.python-version }} + name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }} path: | test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml .coverage* diff --git a/.github/workflows/basic_test_skipped.yaml b/.github/workflows/basic_test_skipped.yaml index b5ebc8117..6d7cca163 100644 --- a/.github/workflows/basic_test_skipped.yaml +++ b/.github/workflows/basic_test_skipped.yaml @@ -24,10 +24,11 @@ jobs: - macos-latest - windows-latest python-version: - - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" + - "3.12" + steps: - run: 'echo "Skipped due to path filter."' diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 2d1cf2f16..63e8d9941 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -27,11 +27,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -40,7 +40,7 @@ jobs: # queries: ./path/to/local/query, your-org/your-repo/queries@main - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index de61a5b0f..d6cff83f4 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -14,7 +14,7 @@ jobs: environment: docs-deployment steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 'pyocd/pyocd-website-source' token: ${{ secrets.DEPLOY_TOKEN }}