-
Notifications
You must be signed in to change notification settings - Fork 86
72 lines (65 loc) · 1.56 KB
/
tests.yaml
File metadata and controls
72 lines (65 loc) · 1.56 KB
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
---
name: tests
"on":
push:
pull_request:
jobs:
misc:
# name: "Linting configs and git"
name: "Linting configs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 12
- uses: docker://docker.io/tamasfe/taplo:latest
name: "Lint TOMLs"
with:
args: fmt --check --diff
- uses: actions/setup-python@v5
- name: "Install tox"
run: |
pip install tox
- name: "Lint YAMLs"
run: |
tox -e lint-yaml
# - name: "Lint git"
# run: |
# tox -e lint-git
lint:
# name: "Linting and type checking"
name: "Linting"
runs-on: ubuntu-24.04
# strategy:
# fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: "Install tox"
run: |
pip install tox
- name: "Lint formatting"
run: |
tox -e lint-py
# - name: "Type checking"
# run: |
# tox -e lint-mypy
tests:
name: "Run unit tests"
runs-on: ubuntu-24.04
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Installing tox"
run: pip install tox
- name: "Executing unit tests"
run: |
tox run -e ${{ matrix.python-version }}