Skip to content

Commit 08d4fc6

Browse files
committed
Actions: Convert run-tests to use uv
1 parent f891050 commit 08d4fc6

File tree

1 file changed

+37
-15
lines changed

1 file changed

+37
-15
lines changed

.github/workflows/run-tests.yml

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,53 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
run-tests:
12+
run-tests-runner:
1313
runs-on: ubuntu-latest
14+
15+
defaults:
16+
run:
17+
working-directory: fifoci/fifoci/runner
18+
1419
steps:
1520
- uses: actions/checkout@v3
1621

17-
- name: Set up Python 3.10
18-
uses: actions/setup-python@v3
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
1924
with:
20-
python-version: "3.10"
25+
python-version-file: "pyproject.toml"
2126

22-
- uses: snok/install-poetry@v1
23-
with:
24-
version: 1.3.0
25-
virtualenvs-create: true
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v6
2629

27-
- name: Install dependencies
28-
run: |
29-
poetry -C fifoci/runner install --no-interaction --no-root
30-
poetry -C fifoci/frontend install --no-interaction --no-root
30+
- name: Sync dependencies
31+
run: uv sync --locked --all-extras --dev
3132

3233
- name: Check runner coding style
33-
run: poetry run -C fifoci/runner black --check fifoci/runner
34+
run: uv run black --check .
35+
36+
run-tests-frontend:
37+
runs-on: ubuntu-latest
38+
39+
defaults:
40+
run:
41+
working-directory: fifoci/fifoci/frontend
42+
43+
steps:
44+
- uses: actions/checkout@v3
45+
46+
- name: Set up Python
47+
uses: actions/setup-python@v5
48+
with:
49+
python-version-file: "pyproject.toml"
50+
51+
- name: Install uv
52+
uses: astral-sh/setup-uv@v6
53+
54+
- name: Sync dependencies
55+
run: uv sync --locked --all-extras --dev
3456

3557
- name: Check frontend coding style
36-
run: poetry run -C fifoci/frontend black --check fifoci/frontend
58+
run: uv run black --check .
3759

3860
- name: Run frontend unit tests
39-
run: poetry run -C fifoci/frontend fifoci-frontend-manage test --noinput
61+
run: uv run fifoci-frontend-manage test --noinput

0 commit comments

Comments
 (0)