Skip to content

chore: bump actions/checkout in the action-dependencies group #244

chore: bump actions/checkout in the action-dependencies group

chore: bump actions/checkout in the action-dependencies group #244

Workflow file for this run

name: "CI"
on:
push:
pull_request:
defaults:
run:
shell: bash
permissions:
contents: read
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
format:
name: "Check formatting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0
with:
args: 'format --check'
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0
- name: "Set up Python"
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
- name: "Install dependencies"
run: |
python -m pip install -r dev-requirements.txt
- name: "Check the docs are up-to-date"
run: |
make lintdoc
tests:
name: "Python ${{ matrix.python }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}-${{ matrix.os-version || 'latest' }}"
env:
MATRIX_ID: "${{ matrix.python }}.${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os:
- ubuntu
- macos
- windows
python:
# When changing this list, be sure to check the [gh] list in
# tox.ini so that tox will run properly.
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- name: "Check out the repo"
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: "Set up Python"
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "${{ matrix.python }}"
allow-prereleases: true
- name: "Install dependencies"
run: |
python -m pip install -r dev-requirements.txt
- name: "Run tox for ${{ matrix.python }}"
run: |
python -m tox
python -m coverage debug data
- name: "Upload coverage data"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: covdata-${{ env.MATRIX_ID }}
path: .coverage.*
include-hidden-files: true
combine:
name: "Combine and report coverage"
needs: tests
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: "0"
persist-credentials: false
- name: "Set up Python"
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.10"
- name: "Install dependencies"
run: |
python -m pip install -r dev-requirements.txt
- name: "Download coverage data"
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: covdata-*
merge-multiple: true
- name: "Combine and report"
run: |
python -m coverage combine
python -m coverage report -m