-
Notifications
You must be signed in to change notification settings - Fork 13
104 lines (94 loc) · 2.85 KB
/
ci.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: "CI"
on:
push:
branches: ['**']
pull_request:
branches: [dev, master]
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3, 3.9, "3.10", 3.11]
steps:
- uses: "actions/checkout@main"
- uses: "actions/setup-python@main"
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python -mpip install --progress-bar=off nox
python --version
pip --version
nox --version
- name: "Run custom checks"
run: "python -m nox -s check"
- name: "Check with `black`"
run: "python -m nox -s black"
- name: "Check with `flake8`"
run: "python -m nox -s flake8"
- name: "Check with `isort`"
run: "python -m nox -s isort"
- name: "Build and check for packaging errors"
run: "python -m nox -s build"
- name: "Install the package"
run: "python -m nox -s install"
windows:
name: Windows
runs-on: windows-latest
strategy:
matrix:
python-version: [3, 3.9, "3.10", 3.11]
steps:
- uses: "actions/checkout@main"
- uses: "actions/setup-python@main"
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python -mpip install --progress-bar=off nox
python --version
pip --version
nox --version
- name: "Run custom checks"
run: "python -m nox -s check"
- name: "Check with `black`"
run: "python -m nox -s black"
- name: "Check with `flake8`"
run: "python -m nox -s flake8"
- name: "Check with `isort`"
run: "python -m nox -s isort"
- name: "Build and check for packaging errors"
run: "python -m nox -s build"
- name: "Install the package"
run: "python -m nox -s install"
macos:
name: macOS
runs-on: macos-latest
strategy:
matrix:
python-version: [3, "3.10", 3.11] # Exclude Python 3.9 here
steps:
- uses: "actions/checkout@main"
- uses: "actions/setup-python@main"
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python -mpip install --progress-bar=off nox
python --version
pip --version
nox --version
- name: "Run custom checks"
run: "python -m nox -s check"
- name: "Check with `black`"
run: "python -m nox -s black"
- name: "Check with `flake8`"
run: "python -m nox -s flake8"
- name: "Check with `isort`"
run: "python -m nox -s isort"
- name: "Build and check for packaging errors"
run: "python -m nox -s build"
- name: "Install the package"
run: "python -m nox -s install"