Skip to content

Update ci workflows #4237

Update ci workflows

Update ci workflows #4237

Workflow file for this run

name: Test
on:
merge_group:
push:
branches-ignore:
- gh-readonly-queue/** # Temporary merge queue-related GH-made branches
pull_request:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build-python:
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
noxenv:
- build
uses: ./.github/workflows/build.yml
with:
python-version: ${{ matrix.python }}
nox-env: ${{ matrix.noxenv }}
link-check:
strategy:
matrix:
python: ['3.11']
noxenv:
- linkcheck
uses: ./.github/workflows/build.yml
with:
python-version: ${{ matrix.python }}
nox-env: ${{ matrix.noxenv }}
check:
# This job does nothing and is only used for the branch protection
# or multi-stage CI jobs, like making sure that all tests pass before
# a publishing job is started.
if: always()
needs:
- build-python
- link-check
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}