diff --git a/.github/workflows/changelog_entry.yaml b/.github/workflows/changelog_entry.yaml index c74ac3d..4cf6327 100644 --- a/.github/workflows/changelog_entry.yaml +++ b/.github/workflows/changelog_entry.yaml @@ -9,7 +9,7 @@ jobs: name: Check changelog fragment runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Check for changelog fragment run: | FRAGMENTS=$(find changelog.d -type f ! -name '.gitkeep' | wc -l) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be22f89..4fcfddf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,11 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v8.1.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install Python dependencies @@ -26,20 +26,20 @@ jobs: - name: Run tests with coverage run: make test - name: Save calibration log - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: calibration_log.csv path: calibration_log.csv - name: Upload calibration log if: always() # even if tests fail - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: calibration-log-${{ github.sha }} path: microcalibration-dashboard/public/calibration_log.csv - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v6 with: - file: ./coverage.xml + files: ./coverage.xml fail_ci_if_error: false verbose: true - name: Test documentation builds @@ -54,7 +54,7 @@ jobs: fi done - name: Deploy documentation - uses: JamesIves/github-pages-deploy-action@releases/v3 + uses: JamesIves/github-pages-deploy-action@v4 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages # The branch the action should deploy to. diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index f5180f4..52fb2be 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -7,13 +7,13 @@ jobs: Lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: "3.13" - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v8.1.0 - name: Install relevant dependencies run: | uv pip install black isort linecheck --system @@ -29,11 +29,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v8.1.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install Python dependencies @@ -43,14 +43,14 @@ jobs: run: make test - name: Upload calibration log if: always() # even if tests fail, to inspect the file - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: calibration-log-${{ github.sha }} path: microcalibration-dashboard/public/calibration_log.csv - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v6 with: - file: ./coverage.xml + files: ./coverage.xml fail_ci_if_error: false verbose: true @@ -58,11 +58,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v8.1.0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: "3.13" - name: Install dependencies diff --git a/.github/workflows/versioning.yaml b/.github/workflows/versioning.yaml index d128e17..0bb0c7e 100644 --- a/.github/workflows/versioning.yaml +++ b/.github/workflows/versioning.yaml @@ -18,17 +18,17 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@v3 with: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.APP_PRIVATE_KEY }} - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: token: ${{ steps.app-token.outputs.token }} fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: 3.13 - name: Build changelog @@ -37,7 +37,7 @@ jobs: python .github/bump_version.py towncrier build --yes --version $(python -c "import re; print(re.search(r'version = \"(.+?)\"', open('pyproject.toml').read()).group(1))") - name: Update changelog - uses: EndBug/add-and-commit@v9 + uses: EndBug/add-and-commit@v10 with: add: "." message: Update package version @@ -49,11 +49,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 # Fetch all history for all tags and branches - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: 3.13 - name: Install package diff --git a/changelog.d/update-actions-node24.changed.md b/changelog.d/update-actions-node24.changed.md new file mode 100644 index 0000000..b0038fe --- /dev/null +++ b/changelog.d/update-actions-node24.changed.md @@ -0,0 +1 @@ +Updated GitHub Actions workflows for Node 24-compatible action runtimes.