File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+
7+ tests :
8+ runs-on : ubuntu-latest
9+ timeout-minutes : 60
10+ strategy :
11+ matrix :
12+ python-version : ["3.10","3.11","3.12","3.13"]
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@v6
19+ with :
20+ version : " 0.6.2"
21+ python-version : ${{ matrix.python-version }}
22+
23+ - name : Install "all" dependencies
24+ run : uv sync --extra all
25+
26+ - name : Run test suite
27+ env :
28+ # show timings of tests
29+ PYTEST_ADDOPTS : " --durations=0"
30+ run : uv run --no-sync pytest --cov alc-exafs --cov-append .
31+
32+
33+ - name : Report coverage to Coveralls
34+ uses : coverallsapp/github-action@v2
35+ with :
36+ parallel : true
37+ flag-name : run-${{ matrix.python-version }}
38+ file : coverage.xml
39+ base-path : alc-exafs
40+
41+ coverage :
42+ needs : tests
43+ runs-on : ubuntu-latest
44+ steps :
45+ - name : Close parallel build
46+ uses : coverallsapp/github-action@v2
47+ with :
48+ parallel-finished : true
49+
50+ pre-commit :
51+ runs-on : ubuntu-latest
52+ timeout-minutes : 15
53+ steps :
54+ - uses : actions/checkout@v4
55+
56+ - name : Install uv
57+ uses : astral-sh/setup-uv@v6
58+ with :
59+ python-version : " 3.12"
60+
61+ - name : Install dependencies
62+ run : uv sync
63+
64+ - name : Run pre-commit
65+ run : |
66+ uv run pre-commit install
67+ uv run pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
You can’t perform that action at this time.
0 commit comments