Skip to content

Commit ba9f49e

Browse files
committed
Change to use uv pt3
1 parent 19b1342 commit ba9f49e

File tree

2 files changed

+27
-14
lines changed

2 files changed

+27
-14
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
with:
2020
python-version: "3.12"
2121

22+
- name: Install the latest version of uv and activate the environment
23+
uses: astral-sh/setup-uv@v6
24+
with:
25+
activate-environment: true
26+
2227
- name: Gather build version (*nix)
2328
run: |
2429
mkdir dist
@@ -35,9 +40,7 @@ jobs:
3540
if: ${{ startsWith(matrix.os, 'ubuntu') }}
3641

3742
- name: Install Python Dependencies
38-
run: |
39-
python -m pip install --upgrade uv
40-
uv sync --frozen
43+
run: uv sync --frozen
4144

4245
- name: Build single executable
4346
run: uv run pyinstaller FastFlix_Nix_OneFile.spec
@@ -61,7 +64,7 @@ jobs:
6164
- name: Build Mac App
6265
if : ${{ startsWith(matrix.os, 'macos') }}
6366
run: |
64-
python scripts/build_mac_app.py ${{ matrix.os }}
67+
uv run python scripts/build_mac_app.py ${{ matrix.os }}
6568
pushd dist
6669
7z a -mm=Deflate -mfb=258 -mpass=15 FastFlix_${{ env.VERSION }}_appbundle_${{ matrix.os }}_${{ env.ARCH }}.zip FastFlix.app
6770
popd
@@ -83,6 +86,11 @@ jobs:
8386
with:
8487
python-version: "3.12"
8588

89+
- name: Install the latest version of uv and activate the environment
90+
uses: astral-sh/setup-uv@v6
91+
with:
92+
activate-environment: true
93+
8694
- name: Gather build version
8795
shell: powershell
8896
run: |
@@ -98,9 +106,7 @@ jobs:
98106
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
99107

100108
- name: Install Python Dependencies
101-
run: |
102-
python -m pip install --upgrade uv
103-
uv sync --frozen
109+
run: uv sync --frozen
104110

105111
- name: Build single executable
106112
shell: cmd

.github/workflows/test.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ jobs:
1414
with:
1515
python-version: "3.12"
1616

17-
- run: pip install ruff==0.12
18-
- run: python -m ruff check
17+
- name: Install the latest version of uv and activate the environment
18+
uses: astral-sh/setup-uv@v6
19+
with:
20+
activate-environment: true
21+
22+
- run: uv sync --frozen
23+
- run: uv run ruff check
1924

2025
test:
2126
runs-on: ubuntu-24.04
@@ -27,18 +32,20 @@ jobs:
2732
with:
2833
python-version: "3.12"
2934

35+
- name: Install the latest version of uv and activate the environment
36+
uses: astral-sh/setup-uv@v6
37+
with:
38+
activate-environment: true
39+
3040
- name: Install PySide6 requirements
3141
run: |
3242
sudo apt update
3343
sudo apt install libopengl0 freeglut3-dev -y
3444
3545
- name: Install requirements
36-
run: |
37-
python -m pip install --upgrade pip setuptools
38-
pip install .
39-
pip install .[develop]
46+
run: uv sync --frozen
4047

4148
- name: Run tests
4249
env:
4350
PYTEST_QT_API: pyside6
44-
run: pytest tests -v
51+
run: uv run pytest tests -v

0 commit comments

Comments
 (0)