File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 45
45
python-version : ${{ matrix.python-version }}
46
46
allow-prereleases : true
47
47
48
+ - uses : astral-sh/setup-uv@v3
49
+
48
50
- name : Install package
49
- run : python -m pip install -e .[test]
51
+ run : uv pip install --system -e .[test]
50
52
51
53
- name : Test package
52
54
run : python -m pytest --doctest-modules --cov=src/hepunits --cov-report=xml
Original file line number Diff line number Diff line change 1
1
import nox
2
2
3
+ nox .needs_version = ">=2024.4.15"
4
+ nox .options .default_venv_backend = "uv|virtualenv"
5
+
3
6
4
7
@nox .session
5
8
def lint (session : nox .Session ) -> None :
@@ -15,5 +18,5 @@ def tests(session: nox.Session) -> None:
15
18
"""
16
19
Run the unit and regular tests.
17
20
"""
18
- session .install (".[test]" )
21
+ session .install ("-e .[test]" )
19
22
session .run ("pytest" , * session .posargs )
You can’t perform that action at this time.
0 commit comments