Skip to content

Commit de3a413

Browse files
authored
Merge pull request #66 from dolphin-emu/uv-conversion
Project: Migrate to uv
2 parents 279ce48 + 2114f6d commit de3a413

File tree

10 files changed

+659
-912
lines changed

10 files changed

+659
-912
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/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: "fifoci/runner/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/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: "fifoci/frontend/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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ __pycache__
44
media
55
dist
66
result
7+
*.egg-info/

0 commit comments

Comments
 (0)