forked from tk0miya/sphinxcontrib-jsonschema
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.25 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
name: Test
on: [push, pull_request]
jobs:
test:
# Need to use an older Ubuntu so Python 3.6 is available
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
# Removed testing of myst-parser-version<0.18.0
myst-parser-version: [ '>=0.18.0,<0.19', '>=0.19.0,<1.0', '>=1.0.0,<2', '>=2.0.0,<3', '>=3.0.0,<4']
jsonref-version: [">1"]
include:
# jsonref 1.0 has a backwards incompatible change - make sure we test just once with an older version of jsonref
- python-version: '3.11'
jsonref-version: "==0.3"
myst-parser-version: '>=3.0.0,<4'
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -e .[test]
- run: pip install 'jsonref${{ matrix.jsonref-version }}'
- run: pip install "myst-parser${{ matrix.myst-parser-version }}"
- run: py.test