86 lines (75 loc) · 2.12 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
ubuntu:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
name: ["py36", "py37", "py38", "py39", "py310", "py311-dev"]
include:
- python: "3.6"
docutils: du14
- python: "3.7"
docutils: du15
- python: "3.8"
docutils: du16
- python: "3.9"
docutils: du17
- python: "3.10"
docutils: du18
- python: "3.11-dev"
docutils: py311
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
if: "!endsWith(matrix.python, '-dev')"
with:
python-version: ${{ matrix.python }}
- name: Set up Python ${{ matrix.python }} (deadsnakes)
uses: deadsnakes/action@v2.0.1
if: "endsWith(matrix.python, '-dev')"
with:
python-version: ${{ matrix.python }}
- name: Check Python version
run: python --version
- name: Install graphviz
run: sudo apt-get install graphviz
- name: Install dependencies
run: python -m pip install -U tox pip
- name: Run Tox
run: tox -e ${{ matrix.docutils }} -- -vv
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
architecture: "x64"
- name: Install dependencies
run: python -m pip install -U tox pip
- name: Run Tox
run: tox -e py -- -vv
coverage:
if: github.repository_owner == 'sphinx-doc'
runs-on: ubuntu-latest
env:
PYTEST_ADDOPTS: "--cov ./ --cov-append --cov-config setup.cfg"
steps:
- uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: 3
- name: Check Python version
run: python --version
- name: Install graphviz
run: sudo apt-get install graphviz
- name: Install dependencies
run: python -m pip install -U tox pip codecov
- name: Run Tox
run: tox -e du18 -- -vv
- name: codecov
uses: codecov/codecov-action@v1