File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,18 @@ 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@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
45
46
with :
46
47
python-version : ${{ matrix.python-version }}
48
+ activate-environment : true
47
49
48
50
- name : Install dependencies
49
51
run : |
50
- python -m pip install 'pip==25.0.1'
51
- pip install -e .[dev]
52
+ # pip causes unit tests to crash when combined with uv, so avoid installing it
53
+ # uv pip install 'pip==25.1.1'
54
+ uv pip install --editable .[dev]
52
55
53
56
- name : Install apt packages
54
57
run : |
61
64
run : |
62
65
export DISPLAY=:99
63
66
Xvfb :99 -screen 0 1024x768x16 &
64
- pytest --cov=ardupilot_methodic_configurator --cov-report=xml:tests/coverage.xml --md=tests/results-${{ matrix.python-version }}.md --junit-xml=tests/results-junit.xml
67
+ 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
65
68
66
69
- name : Fix coverage paths
67
70
run : |
You can’t perform that action at this time.
0 commit comments