77 if : " !contains(github.event.commits[0].message, '[skip ci]')"
88 runs-on : ${{ matrix.platform }}
99 strategy :
10- max-parallel : 1
10+ # max-parallel: 1
1111 matrix :
12- platform : [ ubuntu-latest, macos-13, windows-latest ]
12+ platform : [ubuntu-latest, macos-13, windows-latest]
1313
1414 steps :
1515 - uses : actions/checkout@v3
1616
17- - name : Install poetry
18- run : pipx install poetry
19-
2017 - name : Set up Python "3.11"
2118 uses : actions/setup-python@v4
2219 with :
2320 python-version : " 3.11"
24- cache : ' poetry'
21+
22+ - name : Install uv
23+ uses : astral-sh/setup-uv@v5
24+ with :
25+ version : " latest"
26+ enable-cache : true
2527
2628 - name : Install dependencies
2729 run : |
28- poetry env use " 3.11"
29- poetry install
30+ uv venv --python 3.11
31+ uv sync
3032
3133 - uses : FedericoCarboni/setup-ffmpeg@v1
3234 id : setup-ffmpeg
@@ -35,36 +37,38 @@ jobs:
3537
3638 - name : Run tests
3739 run : |
38- poetry run pytest -vvv --record-mode=new_episodes --ignore tests/test_matching.py --ignore tests/utils/test_ffmpeg.py --ignore tests/utils/test_metadata.py --ignore tests/providers/lyrics/test_azlyrics.py --ignore tests/providers/lyrics/test_musixmatch.py --ignore tests/providers/audio/test_youtube.py --ignore tests/console/test_entry_point.py --ignore tests/test_init.py
40+ uv run pytest -vvv --record-mode=new_episodes --ignore tests/test_matching.py --ignore tests/utils/test_ffmpeg.py --ignore tests/utils/test_metadata.py --ignore tests/providers/lyrics/test_azlyrics.py --ignore tests/providers/lyrics/test_musixmatch.py --ignore tests/providers/audio/test_youtube.py --ignore tests/console/test_entry_point.py --ignore tests/test_init.py
3941 env :
4042 PLATFORM : ${{ matrix.platform }}
4143
4244 test :
4345 if : " !contains(github.event.commits[0].message, '[skip ci]')"
4446 runs-on : ${{ matrix.platform }}
4547 strategy :
46- max-parallel : 3
48+ # max-parallel: 3
4749 matrix :
48- platform : [ ubuntu-latest, macos-13, windows-latest ]
49- python-version : [ "3.9", "3. 11" ]
50+ platform : [ubuntu-latest, macos-13, windows-latest]
51+ python-version : ["3.11"]
5052
5153 steps :
5254 - uses : actions/checkout@v3
5355
54- - name : Install poetry
55- run : pipx install poetry
56-
5756 - name : Set up Python ${{ matrix.python-version }}
5857 uses : actions/setup-python@v4
5958 with :
6059 python-version : ${{ matrix.python-version }}
61- cache : ' poetry'
60+
61+ - name : Install uv
62+ uses : astral-sh/setup-uv@v5
63+ with :
64+ version : " latest"
65+ enable-cache : true
6266
6367 - name : Install dependencies
6468 run : |
65- poetry env use ${{ matrix.python-version }}
66- pip install -U pip setuptools
67- poetry install
69+ uv venv --python ${{ matrix.python-version }}
70+ uv pip install pip setuptools
71+ uv sync
6872
6973 - uses : FedericoCarboni/setup-ffmpeg@v2
7074 id : setup-ffmpeg
7377
7478 - name : Run tests
7579 run : |
76- poetry run pytest -vvv --record-mode=none --disable-recording --ignore tests/providers/lyrics --ignore tests/utils/test_github.py --ignore tests/utils/test_ffmpeg.py --ignore tests/utils/test_metadata.py --ignore tests/test_matching.py --ignore tests/providers/audio/test_youtube.py --ignore tests/console/test_entry_point.py --ignore tests/test_init.py
80+ uv run pytest -vvv --record-mode=none --disable-recording --ignore tests/providers/lyrics --ignore tests/utils/test_github.py --ignore tests/utils/test_ffmpeg.py --ignore tests/utils/test_metadata.py --ignore tests/test_matching.py --ignore tests/providers/audio/test_youtube.py --ignore tests/console/test_entry_point.py --ignore tests/test_init.py
7781 env :
7882 PLATFORM : ${{ matrix.platform }}
7983
@@ -84,19 +88,21 @@ jobs:
8488 steps :
8589 - uses : actions/checkout@v3
8690
87- - name : Install poetry
88- run : pipx install poetry
89-
9091 - name : Set up Python "3.11"
9192 uses : actions/setup-python@v4
9293 with :
9394 python-version : " 3.11"
94- cache : ' poetry'
95+
96+ - name : Install uv
97+ uses : astral-sh/setup-uv@v5
98+ with :
99+ version : " latest"
100+ enable-cache : true
95101
96102 - name : Install dependencies
97103 run : |
98- poetry env use " 3.11"
99- poetry install
104+ uv venv --python 3.11
105+ uv sync
100106
101107 - uses : FedericoCarboni/setup-ffmpeg@v1
102108 id : setup-ffmpeg
@@ -105,4 +111,4 @@ jobs:
105111
106112 - name : Run tests
107113 run : |
108- poetry run pytest -vvv --record-mode=none --disable-recording tests/test_matching.py
114+ uv run pytest -vvv --record-mode=none --disable-recording tests/test_matching.py
0 commit comments