-
Notifications
You must be signed in to change notification settings - Fork 66
58 lines (55 loc) · 2.08 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on: [pull_request]
jobs:
tests:
name: "py${{ matrix.python-version }} sp${{ matrix.sphinx-version }} do${{ matrix.docutils-version }} ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true # 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/debian-bugs-dist@lists.debian.org/msg1829077.html
python-version: ["3.8", "3.10"]
sphinx-version: ['5.2.1', '4.5.0']
docutils-version: ['0.19', '0.15']
exclude:
- sphinx-version: "4.5.0"
docutils-version: "0.19"
include:
# Check only newest setups for win server
- os: "windows-latest"
python-version: "3.8"
sphinx-version: "4.5.0"
docutils-version: "0.15"
steps:
- uses: actions/checkout@v3.5.3
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Nox Dependencies
run: |
python -m pip install poetry nox nox-poetry pyparsing==3.0.4
- name: Install other dependencies
run: |
python -m pip install setuptools
- name: Final package list
run: |
pip freeze
- name: Run Tests on Windows
run: nox --non-interactive --session "tests-${{ matrix.python-version }}(sphinx='${{ matrix.sphinx-version }}', docutils='${{ matrix.docutils-version }}')" -- --full-trace
if: runner.os == 'Windows'
- name: Run Tests on Linux
run: nox --non-interactive --session "tests-${{ matrix.python-version }}(sphinx='${{ matrix.sphinx-version }}', docutils='${{ matrix.docutils-version }}')" -- --full-trace
if: runner.os == 'Linux'
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- uses: pre-commit/action@v3.0.0