@@ -11,31 +11,24 @@ jobs:
11
11
strategy :
12
12
matrix :
13
13
python-version :
14
- - " 3.9" # minimum required
15
- - " 3.12" # latest
14
+ # - "3.9" # minimum required
15
+ # - "3.12" # latest
16
16
- " 3.13-dev" # next
17
17
18
18
runs-on : ubuntu-latest
19
19
continue-on-error : ${{ matrix.python-version == '3.13-dev' }}
20
- env :
21
- UV_PYTHON : ${{ matrix.python-version }}
22
20
23
21
steps :
24
22
- run : sudo apt-get install flac mp3val oggz-tools
25
23
- 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
30
25
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
36
27
- uses : actions/setup-python@v5
28
+ id : setup-python
37
29
with :
38
30
python-version : ${{ matrix.python-version }}
31
+ - run : echo "UV_PYTHON=${{ steps.setup-python.outputs.python-path }}" >> $GITHUB_ENV
39
32
- run : uv lock --locked
40
33
- run : uv sync --all-extras --dev
41
34
- run : uv run ruff check .
@@ -50,25 +43,18 @@ jobs:
50
43
- " beets==1.6.1"
51
44
52
45
runs-on : ubuntu-latest
53
- env :
54
- UV_PYTHON : " 3.9"
55
46
56
47
steps :
57
48
- run : sudo apt-get install flac mp3val oggz-tools
58
49
- 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
63
51
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
69
53
- uses : actions/setup-python@v5
54
+ id : setup-python
70
55
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
72
58
- run : uv lock -P ${{ matrix.beets }}
73
59
- run : uv sync --all-extras --dev
74
60
- run : uv run pytest
0 commit comments