-
Notifications
You must be signed in to change notification settings - Fork 2
78 lines (60 loc) · 1.74 KB
/
tox.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
name: Run tox tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [[3,6], [3,7], [3,8], [3,9]]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ join(matrix.python-version, '.') }}
uses: actions/setup-python@v2
with:
python-version: ${{ join(matrix.python-version, '.') }}
- name: Install poppler-utils for ubuntu-latest
run: |
sudo apt install poppler-utils
if: matrix.os == 'ubuntu-latest'
- name: Copy policy file for ubuntu-latest (needed to use ImageMagic in visual debugging tox tests)
run: |
sudo cp .github/workflows/policy.xml /etc/ImageMagick-6/policy.xml
if: matrix.os == 'ubuntu-latest'
- name: Install ImageMagick on macos-latest
run: |
brew install freetype imagemagick
if: matrix.os == 'macos-latest'
- name: Install poetry and tox
run: |
python -m pip install poetry tox
- name: Run tox env pytest
run: |
tox -e py${{ join(matrix.python-version, '') }}
flake8_pylint_docs_black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry and tox
run: |
python -m pip install poetry tox
- name: Run tox env flake8
run: |
tox -e flake8
- name: Run tox env pylint
run: |
tox -e pylint
- name: Run tox env docs
run: |
tox -e docs
- name: Run tox env black
run: |
tox -e black