-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (39 loc) · 951 Bytes
/
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
name: Tests
on:
push:
branches:
- master
paths-ignore:
- README.md
- LICENSE
- CHANGELOG
- .gitignore
jobs:
linux:
name: Linux, Python ${{ matrix.python-version }}, Sphinx ${{ matrix.sphinx-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.9'
sphinx-version:
- '3'
- '4'
- '5'
steps:
- name: Cache dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
path: |
~/.cache
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: ./ci.sh test "sphinx${SPHINX_VERSION}"
env:
SPHINX_VERSION: ${{ matrix.sphinx-version }}