✨ NEW: needs_reproducible_json
config option
#1496
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: pre-commit/[email protected] | |
tests-core: | |
name: "Core py${{ matrix.python-version }} sphinx~=${{ matrix.sphinx-version }} ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false # Set on "false" to get the results of ALL builds | |
matrix: | |
os: ["ubuntu-latest"] | |
# 3.9.8 seems to be broken with type_ast | |
# https://www.mail-archive.com/[email protected]/msg1829077.html | |
python-version: ["3.8", "3.11"] | |
sphinx-version: ["5.0", "6.0", "7.0"] | |
include: | |
- os: "windows-latest" | |
python-version: "3.8" | |
sphinx-version: "5.0" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update pip | |
run: python -m pip install --upgrade pip | |
- name: Install dependencies | |
run: | | |
python -m pip install sphinx~=${{ matrix.sphinx-version }} -e .[test] | |
python -m pip freeze | |
- name: Run pytest | |
run: | | |
python -m pytest -vv --ignore=tests/benchmarks -m "not jstest" tests | |
tests-js: | |
name: "JS py${{ matrix.python-version }} sphinx~=${{ matrix.sphinx-version }} ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: "ubuntu-latest" | |
python-version: "3.8" | |
sphinx-version: "5.0" | |
- os: "ubuntu-latest" | |
python-version: "3.11" | |
sphinx-version: "7.0" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install Cypress Test Framework | |
run: npm install cypress | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update pip | |
run: python -m pip install --upgrade pip | |
- name: Install dependencies | |
run: | | |
python -m pip install sphinx~=${{ matrix.sphinx-version }} -e .[test] | |
python -m pip freeze | |
- name: Run pytest | |
run: | | |
python -m pytest -v --ignore=tests/benchmarks -m "jstest" tests | |
check: | |
# This job does nothing and is only used for the branch protection | |
# see https://github.com/marketplace/actions/alls-green#why | |
if: always() | |
needs: | |
- lint | |
- tests-core | |
- tests-js | |
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) }} |