Skip to content

Commit e6ada31

Browse files
committed
wip
1 parent 353b62c commit e6ada31

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed

.github/workflows/main.yaml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,24 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version:
14-
- "3.9" # minimum required
15-
- "3.12" # latest
14+
# - "3.9" # minimum required
15+
# - "3.12" # latest
1616
- "3.13-dev" # next
1717

1818
runs-on: ubuntu-latest
1919
continue-on-error: ${{ matrix.python-version == '3.13-dev' }}
20-
env:
21-
UV_PYTHON: ${{ matrix.python-version }}
2220

2321
steps:
2422
- run: sudo apt-get install flac mp3val oggz-tools
2523
- uses: actions/checkout@v4
26-
- name: Set up uv
27-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
28-
- name: uv cache
29-
uses: actions/cache@v4
24+
- uses: astral-sh/setup-uv@v2
3025
with:
31-
path: ${{ env.UV_CACHE_DIR}}
32-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
33-
restore-keys: |
34-
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
35-
uv-${{ runner.os }}
26+
enable-cache: true
3627
- uses: actions/setup-python@v5
28+
id: setup-python
3729
with:
3830
python-version: ${{ matrix.python-version }}
31+
- run: echo "UV_PYTHON=${{ steps.setup-python.outputs.python-path }}" >> $GITHUB_ENV
3932
- run: uv lock --locked
4033
- run: uv sync --all-extras --dev
4134
- run: uv run ruff check .
@@ -50,25 +43,18 @@ jobs:
5043
- "beets==1.6.1"
5144

5245
runs-on: ubuntu-latest
53-
env:
54-
UV_PYTHON: "3.9"
5546

5647
steps:
5748
- run: sudo apt-get install flac mp3val oggz-tools
5849
- uses: actions/checkout@v4
59-
- name: Set up uv
60-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
61-
- name: uv cache
62-
uses: actions/cache@v4
50+
- uses: astral-sh/setup-uv@v2
6351
with:
64-
path: ${{ env.UV_CACHE_DIR}}
65-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
66-
restore-keys: |
67-
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
68-
uv-${{ runner.os }}
52+
enable-cache: true
6953
- uses: actions/setup-python@v5
54+
id: setup-python
7055
with:
71-
python-version: ${{ env.UV_PYTHON }}
56+
python-version: ${{ matrix.python-version }}
57+
- run: echo "UV_PYTHON=${{ steps.setup-python.outputs.python-path }}" >> $GITHUB_ENV
7258
- run: uv lock -P ${{ matrix.beets }}
7359
- run: uv sync --all-extras --dev
7460
- run: uv run pytest

0 commit comments

Comments
 (0)