-
Notifications
You must be signed in to change notification settings - Fork 148
49 lines (45 loc) · 1.4 KB
/
ci.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
name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
experimental: [false]
include:
- python-version: '3.11'
experimental: true
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install apt dependencies
run: |
sudo apt-get update && sudo apt-get -y install plantuml libxml2-dev libxslt-dev python3-dev
- name: Install pip & test dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools
pip install pytest pre-commit
- name: Install dependencies for Python
run: |
pip install -c requirements.txt -e .[tests,sphinx,svgsupport,aafiguresupport,mathsupport,rawhtmlsupport]
- name: Lint
run: |
pre-commit run --all-files --show-diff-on-failure
if: matrix.python-version == '3.8'
- name: Test with pytest
continue-on-error: true
run: |
pytest -v
- name: Archive test output
uses: actions/upload-artifact@v2
if: failure()
with:
name: failed-tests
path: tests/output
retention-days: 8