Skip to content

Commit

Permalink
[ci] Update used actions (deps)
Browse files Browse the repository at this point in the history
Admittedly, I just updated them to the latest version
without checking the change logs for breaking changes.

* .github/actions/setup/action.yml
* .github/workflows/ci.yml
* .github/workflows/publish-docs.yml
  • Loading branch information
real-yfprojects committed Jan 1, 2025
1 parent 0af4f72 commit 8126f4b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ runs:
shell: bash

- name: setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
if: inputs.cache-python == 'true'
with:
python-version: ${{ inputs.python-version }}
cache: "pip"

- name: setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
if: inputs.cache-python != 'true'
with:
python-version: ${{ inputs.python-version }}
Expand Down Expand Up @@ -69,7 +69,7 @@ runs:
shell: bash
- name: Configure Caching for Pre-Commit
if: ${{ inputs.setup-pre-commit == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@v4

- name: Setup
id: setup
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
# Upload changed files on pre-commit error
- name: Upload changed files
if: ${{ failure() && steps.changed-files.outputs.files }}
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@v4
with:
name: Files modified by pre-commit
path: ${{ steps.changed-files.outputs.files }}
Expand All @@ -52,10 +52,10 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
uses: actions/setup-python@v5
with:
python-version: "3.11"

Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@v4

- name: Setup
id: setup
Expand All @@ -96,14 +96,14 @@ jobs:
run: make test

# Upload summary of test results
- uses: test-summary/action@v2.1
- uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
if: failure() || success()
with:
paths: report.xml

# Upload coverage to job summary
- name: Summarize coverage
uses: livewing/lcov-job-summary@0a9952db27f98def2ba2de3189c6b24acc4c5501 # v1.1.0
uses: livewing/lcov-job-summary@28126fb20073f4624d0f8e2c6f4afbe1c0670cbb # v1.2.0
if: matrix.extras == 'all' && (failure() || success())
with:
lcov: coverage.lcov
Expand All @@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
uses: actions/checkout@v4

- name: Setup
id: setup
Expand All @@ -126,7 +126,7 @@ jobs:

# Upload build
- name: Upload build
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@v4
with:
name: Docs
path: docs/build
12 changes: 6 additions & 6 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
steps:
# Checkout current ref to get the current version of the build script
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# Install poetry
- name: Install poetry
Expand All @@ -41,7 +41,7 @@ jobs:
run: echo venv_path="$(poetry config virtualenvs.path)" >> $GITHUB_ENV

- name: Retrieve cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache-restore
with:
path: ${{ env.venv_path }}
Expand All @@ -57,7 +57,7 @@ jobs:

# Configure pages provides deployment URL
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

# Prepare
- name: Fetch tags and branches
Expand All @@ -83,7 +83,7 @@ jobs:
echo 'cache_key=publish-docs|poetry|'"$(find ${{ env.venv_path }} -type f -exec sha256sum {} \; | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- name: Upload new cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
continue-on-error: true
if: steps.cache-restore.outputs.cache-matched-key != env.cache_key
with:
Expand All @@ -92,12 +92,12 @@ jobs:

# Upload built docs
- name: Upload build artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: "build"
retention-days: 7

# Deploy uploaded artifact
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit 8126f4b

Please sign in to comment.