Skip to content

Commit cdf0320

Browse files
committed
Fix actions
1 parent 8188abb commit cdf0320

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

‎.github/workflows/install.yaml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v7
18-
- name: Set up uv
19-
uses: astral-sh/setup-uv@v10
18+
- uses: astral-sh/setup-uv@v10.0.1
19+
with:
20+
python-version: ${{ matrix.python-version }}
2021

2122
- name: Install python-evdev
2223
run: |
2324
uv venv -p ${{ matrix.python-version }}
2425
uv pip install -v .
25-
(cd /tmp && "$GITHUB_WORKSPACE/.venv/bin/python" -c "import evdev.ecodes; print(evdev.ecodes)")
26+
uv run python -c "import evdev.ecodes; print(evdev.ecodes)"

‎.github/workflows/lint.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v7
18-
- name: Set up uv
19-
uses: astral-sh/setup-uv@v10
18+
- uses: astral-sh/setup-uv@v10.0.1
2019
with:
2120
python-version: ${{ matrix.python-version }}
2221

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v7
18-
- name: Set up uv
19-
uses: astral-sh/setup-uv@v10
18+
- uses: astral-sh/setup-uv@v10.0.1
2019
with:
2120
python-version: ${{ matrix.python-version }}
2221

2322
- name: Run pytest tests
24-
# sudo required to write to uinputs
2523
run: |
26-
sudo uv venv
27-
sudo uv pip install -e . pytest
28-
sudo uv run pytest tests
24+
uv venv
25+
uv pip install -e . pytest
26+
sudo $(which uv) run pytest tests

0 commit comments

Comments
 (0)