File tree 6 files changed +39
-15
lines changed
6 files changed +39
-15
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,31 @@ name: Coverage
2
2
3
3
on :
4
4
pull_request :
5
- paths-ignore :
6
- - ' doc/**'
7
- - ' .ci/**'
8
- - ' *.rst'
5
+ paths :
6
+ - src
7
+ - extern
8
+ - tests
9
+ - pyproject.toml
10
+ - noxfile.py
11
+ - CMakeLists.txt
12
+ - .github/workflows/coverage.yml
9
13
push :
10
14
branches :
11
15
- main
12
16
- develop
13
17
- beta/*
14
- paths-ignore :
15
- - ' doc/**'
16
- - ' .ci/**'
17
- - ' *.rst'
18
+ paths :
19
+ - src
20
+ - extern
21
+ - tests
22
+ - pyproject.toml
23
+ - noxfile.py
24
+ - CMakeLists.txt
25
+ - .github/workflows/coverage.yml
26
+
27
+ concurrency :
28
+ group : ${{ github.workflow }}-${{ github.head_ref }}
29
+ cancel-in-progress : true
18
30
19
31
jobs :
20
32
coverage :
32
44
- uses : actions/setup-python@v5
33
45
with :
34
46
python-version : " 3.12"
47
+ # without this, the Qt tests abort because a lib is missing
35
48
- uses : tlambert03/setup-qt-libs@v1
36
49
- uses : astral-sh/setup-uv@v4
37
50
- run : uv pip install --system nox
Original file line number Diff line number Diff line change 9
9
paths :
10
10
- .github/workflows/release.yml
11
11
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.head_ref }}
14
+ cancel-in-progress : true
15
+
12
16
env :
13
17
# Latest Jupyter requires this to acknowledge deprecation
14
18
JUPYTER_PLATFORM_DIRS : 1
81
85
- uses : actions/checkout@v4
82
86
with :
83
87
submodules : true
88
+ # without this, the Qt tests abort because a lib is missing
89
+ - uses : tlambert03/setup-qt-libs@v1
84
90
85
91
- run : pipx run build --sdist
86
92
Original file line number Diff line number Diff line change @@ -2,10 +2,13 @@ name: Test
2
2
3
3
on :
4
4
pull_request :
5
- paths-ignore :
6
- - ' doc/**'
7
- - ' .ci/**'
8
- - ' *.rst'
5
+ paths :
6
+ - src
7
+ - extern
8
+ - tests
9
+ - pyproject.toml
10
+ - CMakeLists.txt
11
+ - .github/workflows/test.yml
9
12
10
13
env :
11
14
CMAKE_ARGS : -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
50
53
# pip install .[test] is not used here to test minimum (faster)
51
54
# cov workflow runs all tests
52
55
- run : uv pip install --system . pytest pytest-xdist ${{ matrix.installs }}
53
- - run : python -m pytest -n 3
56
+ - run : pytest -n 3
Original file line number Diff line number Diff line change @@ -66,3 +66,5 @@ doc/index.rst
66
66
testcase
67
67
68
68
* venv *
69
+
70
+ uv.lock
Original file line number Diff line number Diff line change 4
4
Pass extra arguments to pytest after --
5
5
"""
6
6
7
- import nox
7
+ import nox # type:ignore
8
8
import sys
9
9
10
10
sys .path .append ("." )
Original file line number Diff line number Diff line change 5
5
try :
6
6
import tomllib as toml
7
7
except ModuleNotFoundError :
8
- import tomli as toml
8
+ import tomli as toml # type: ignore
9
9
10
10
with open (PurePath (__file__ ).parent / "pyproject.toml" , "rb" ) as f :
11
11
version = toml .load (f )["project" ]["version" ]
You can’t perform that action at this time.
0 commit comments