-
Notifications
You must be signed in to change notification settings - Fork 7
91 lines (83 loc) · 2.37 KB
/
test.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Test
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
jobs:
ubuntu:
runs-on: ubuntu-latest
name: Python ${{ matrix.python }}, Sphinx ${{ matrix.sphinx }}
strategy:
fail-fast: false
matrix:
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# - "3.12-dev"
sphinx:
- "4" # jQuery included
- "5" # jQuery deprecated
- "6" # jQuery removed
- "7"
exclude:
# Sphinx >= 6 does not support Python 3.7
- python: "3.7"
sphinx: "6"
- python: "3.7"
sphinx: "7"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: .github/workflows/test.yml
- name: Check Python version
run: python --version
- name: Update pip
run: python -m pip install -U pip
- name: Install dependencies
run: python -m pip install -U pytest "Sphinx~=${{ matrix.sphinx }}.0"
- name: Install sphinxcontrib-jquery
run: python -m pip install .
- name: Run pytest
run: python -X dev -X warn_default_encoding -m pytest -vv
old-sphinx-versions:
runs-on: ubuntu-latest
name: Python ${{ matrix.python }}, Sphinx ${{ matrix.sphinx }}
strategy:
fail-fast: false
matrix:
include:
- python: "3.9"
sphinx: "3"
- python: "3.7"
sphinx: "2"
- python: "3.7"
sphinx: "1.8"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: .github/workflows/test.yml
- name: Check Python version
run: python --version
- name: Update pip
run: python -m pip install -U pip
- name: Install dependencies
run: python -m pip install -U pytest "Sphinx~=${{ matrix.sphinx }}.0" "Jinja2<3.1"
- name: Install sphinxcontrib-jquery
run: python -m pip install .
- name: Run pytest
run: python -X dev -X warn_default_encoding -m pytest -vv