-
Notifications
You must be signed in to change notification settings - Fork 6
80 lines (73 loc) · 1.91 KB
/
testing.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
name: CI
on:
push:
branches:
- main
- stable
- v0.*.x
tags:
- v*
pull_request:
workflow_dispatch:
jobs:
initial-tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Python 3.10
os: ubuntu-latest
python: '3.10'
toxenv: py310
- name: Python 3.8 with minimal dependencies
os: windows-latest
python: 3.8
toxenv: py38-all-minimal
- name: Python 3.9, all tests, code coverage
os: macos-latest
python: 3.9
toxenv: py39-all-cov
- name: Linters
os: ubuntu-latest
python: 3.8
toxenv: linters
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: python -m pip install --progress-bar off --upgrade tox codecov
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.toxenv,'-cov') }}
uses: codecov/[email protected]
with:
file: ./coverage.xml
documentation:
name: Documentation
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Python dependencies
run: python -m pip install --progress-bar off --upgrade tox
- name: Install language-pack-fr and tzdata
run: sudo apt-get install graphviz pandoc
- name: Run tests
run: tox -e build_docs -- -q