forked from breathe-doc/breathe
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.38 KB
/
unit_tests.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
name: unit tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
sphinx-version:
- 3.0.4
- 3.1.2
- 3.2.1
- 3.3.1
- 3.4.3
- 3.5.4
- git+https://github.com/sphinx-doc/sphinx.git@4.0.x
# enable 4.x again when 4.0.x has been merged into it
#- git+https://github.com/sphinx-doc/sphinx.git@4.x
- git+https://github.com/sphinx-doc/sphinx.git@master
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: install sphinx from PyPI or from git
run: |
if echo "${{ matrix.sphinx-version }}"|grep -q git; then
pip install ${{ matrix.sphinx-version }}
else
pip install -Iv Sphinx==${{ matrix.sphinx-version }}
fi
- name: install dependencies
run: |
pip install -r requirements/development.txt
- name: run the unit tests
run: make dev-test