-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (79 loc) · 2.26 KB
/
thorough.yaml
File metadata and controls
86 lines (79 loc) · 2.26 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
name: Thorough tests
on:
push:
branches:
- main
- release/**
schedule:
- cron: "13 3 * * 6"
workflow_dispatch: {}
jobs:
linters:
name: Linting and static analysis
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- run: pip install --group dev --group lint -e .
- run: pre-commit run --all-files
- run: mypy looptime --strict
unit-tests:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- run: pip install --group dev -e .
- run: pytest --color=yes --cov=looptime --cov-branch
- name: Publish coverage to Coveralls.io
if: success()
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
continue-on-error: true
- name: Publish coverage to CodeCov.io
uses: codecov/codecov-action@v3
if: success()
env:
PYTHON: ${{ matrix.python-version }}
with:
flags: unit
env_vars: PYTHON
continue-on-error: true
# No coverage: PyPy performs extremely poorly with tracing/coverage.
pypy-tests:
strategy:
fail-fast: false
matrix:
python-version: [ "pypy-3.10", "pypy-3.11" ]
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- run: pip install --group dev -e .
- run: pytest --color=yes --no-cov
coveralls-finish:
name: Finalize coveralls.io
needs: [unit-tests]
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-python@v6
- run: pip install coveralls
- run: coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
continue-on-error: true