Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/basic_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,25 @@ 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 }}

# This requires pip 20.1+. As of 28 Feb 2021 this condition is met for all supported
# 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') }}
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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/*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 }}
Expand Down
Loading