diff --git a/.github/workflows/basic_test.yaml b/.github/workflows/basic_test.yaml index c3c6168ae..15651005a 100644 --- a/.github/workflows/basic_test.yaml +++ b/.github/workflows/basic_test.yaml @@ -37,12 +37,12 @@ jobs: steps: # Only check out HEAD. We don't need the full history. - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 with: fetch-depth: 1 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -50,11 +50,12 @@ jobs: # Python versions on all OSes. - name: Get pip cache dir id: pip-cache + shell: bash run: | echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT - name: Setup pip cache - uses: actions/cache@v3 + uses: actions/cache@v5 with: path: ${{ steps.pip-cache.outputs.dir }} key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }} @@ -66,10 +67,6 @@ jobs: python -m pip install --upgrade setuptools pip wheel build twine pip install -e .[test] - - name: Setup flake8 annotations - # This commit is v1.1. Using exact commit for security. - uses: rbialon/flake8-annotations@48819b39d57c621b5a64a1cdce40a5caa6a43b89 - # Stop the build if there are Python syntax errors or undefined names. - name: Lint with flake8 run: | @@ -92,7 +89,7 @@ jobs: twine check dist/* - name: Upload pytest test results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: pytest-results-${{ matrix.python-version }}-${{ matrix.os }} path: | diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 2aba7e635..5b0ca3b92 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@v6 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 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@v3 + uses: github/codeql-action/autobuild@v4 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index de61a5b0f..eb0485129 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@v6 with: repository: 'pyocd/pyocd-website-source' token: ${{ secrets.DEPLOY_TOKEN }} diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 14b7c389d..4d5e08839 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -29,13 +29,13 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.target_branch || 'develop' }} fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '3.11' cache: 'pip' @@ -70,7 +70,7 @@ jobs: ./dist/pyocd/pyocd --help - name: Upload PyInstaller artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: ${{ matrix.artifact_name }}-${{ env.PYOCD_VERSION }} path: dist/pyocd/* diff --git a/.github/workflows/release_builds.yaml b/.github/workflows/release_builds.yaml index 992cfddde..22f27c274 100644 --- a/.github/workflows/release_builds.yaml +++ b/.github/workflows/release_builds.yaml @@ -26,12 +26,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '3.11' cache: 'pip' @@ -74,14 +74,14 @@ jobs: ./dist/pyocd/pyocd --help - name: Upload PyInstaller artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: ${{ matrix.artifact_name }}-${{ env.PYOCD_VERSION }} path: dist/pyocd/* retention-days: 7 - name: Upload distribution artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 if: matrix.os == 'ubuntu-latest' with: name: pyocd-distribution-${{ env.PYOCD_VERSION }}