-
Notifications
You must be signed in to change notification settings - Fork 2
99 lines (92 loc) · 2.71 KB
/
run-tests-on-push.yml
File metadata and controls
99 lines (92 loc) · 2.71 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
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
name: Run Tests (On Push)
on:
push:
env:
LOG_CONFIG: test
jobs:
run-mypy-3_11:
runs-on: ubuntu-latest
name: MyPy checks on Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: sudo apt-get update
- run: sudo apt-get install -y tabix
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev --extras server
- run: poetry run mypy src/
run-ruff-lint:
runs-on: ubuntu-latest
name: Ruff linting on Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: sudo apt-get update
- run: sudo apt-get install -y tabix
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev --extras server
- run: poetry run ruff check
run-tests-3_11-core-dependencies:
runs-on: ubuntu-latest
name: Pytest on Core Dependencies-- Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev
- run: poetry run pytest tests/
run-tests-3_11:
runs-on: ubuntu-latest
name: Pytest on Optional Dependencies-- Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: sudo apt-get update
- run: sudo apt-get install -y tabix
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev --extras server
- run: poetry run pytest tests/ --show-capture=stdout --cov=src
run-tests-3_12-core-dependencies:
runs-on: ubuntu-latest
name: Pytest on Core Dependencies-- Python 3.12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev
- run: poetry run pytest tests/
run-tests-3_12:
runs-on: ubuntu-latest
name: Pytest on Optional Dependencies-- Python 3.12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- run: sudo apt-get update
- run: sudo apt-get install -y tabix
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev --extras server
- run: poetry run pytest tests/ --show-capture=stdout --cov=src