File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -40,25 +40,17 @@ jobs:
40
40
- name : Checkout
41
41
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42
42
43
- - name : Set up Python ${{ matrix.python-version }}
44
- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
43
+ # https://docs.astral.sh/uv/guides/integration/github/
44
+ - name : Install uv and set the python version
45
+ uses : astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1
45
46
with :
46
47
python-version : ${{ matrix.python-version }}
47
-
48
- - name : Set up pip cache
49
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
50
- with :
51
- path : |
52
- ~/.cache/pip
53
- key : ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
54
- restore-keys : |
55
- ${{ runner.os }}-pip-${{ matrix.python-version }}-
56
- ${{ runner.os }}-pip-
48
+ activate-environment : true
57
49
58
50
- name : Install dependencies and application
59
51
# without --editable the coverage report is not generated correctly
60
52
run : |
61
- pip install --editable .[dev]
53
+ uv pip install --editable .[dev]
62
54
63
55
- name : Test with pytest
64
56
id : pytest
67
59
export LIBGL_ALWAYS_SOFTWARE=1
68
60
export DISPLAY=:99
69
61
Xvfb :99 -screen 0 1024x768x16 &
70
- pytest --cov=ardupilot_methodic_configurator --cov-report=xml:tests/coverage.xml --md=tests/results-${{ matrix.python-version }}.md --junit-xml=tests/results-junit.xml
62
+ uv run pytest --cov=ardupilot_methodic_configurator --cov-report=xml:tests/coverage.xml --md=tests/results-${{ matrix.python-version }}.md --junit-xml=tests/results-junit.xml
71
63
72
64
- name : Fix coverage paths
73
65
run : |
You can’t perform that action at this time.
0 commit comments