Skip to content

Bump zgosalvez/github-actions-ensure-sha-pinned-actions from 4.0.1 to 5.0.0 in the github-actions group #181

Bump zgosalvez/github-actions-ensure-sha-pinned-actions from 4.0.1 to 5.0.0 in the github-actions group

Bump zgosalvez/github-actions-ensure-sha-pinned-actions from 4.0.1 to 5.0.0 in the github-actions group #181

Workflow file for this run

---
name: "Test"
on:
workflow_dispatch:
pull_request:
push:
branches:
- "0.[0-9][0-9]"
jobs:
test:
name: "Test"
runs-on: "ubuntu-24.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
- name: "Set up Python"
uses: "actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405" # v6.2.0
with:
python-version: "3.12"
- name: "Get pip cache dir"
id: "pip-cache"
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: "Cache pip packages"
uses: "actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306" # v5.0.3
with:
path: "${{ steps.pip-cache.outputs.dir }}"
key: "${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}"
restore-keys: |
${{ runner.os }}-pip-
- name: "Install requirements"
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: "Run build test"
run: |
make test
- name: "Linkcheck"
run: |
make linkcheck
lint:
name: "Linting"
runs-on: "ubuntu-24.04"
steps:
- uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
- uses: "actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405" # v6.2.0
- uses: "pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd" #v3.0.1