-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (50 loc) · 1.58 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Check and test
on: [push, pull_request]
env:
FORCE_COLOR: "1"
jobs:
build:
strategy:
matrix:
python-version:
- "3.9" # minimum required
- "3.12" # latest
- "3.13-dev" # next
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.python-version == '3.13-dev' }}
steps:
- run: sudo apt-get install flac mp3val oggz-tools
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v2
# with:
# enable-cache: true
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
- run: echo "UV_PYTHON=${{ steps.setup-python.outputs.python-path }}" >> $GITHUB_ENV
- run: uv lock --locked
- run: uv sync --all-extras --dev
- run: uv run ruff check .
- run: uv run pytest
# build-beets-versions:
# strategy:
# matrix:
# beets:
# - "beets@git+https://github.com/beetbox/beets#master"
# - "beets==1.6.1"
# runs-on: ubuntu-latest
# steps:
# - run: sudo apt-get install flac mp3val oggz-tools
# - uses: actions/checkout@v4
# - uses: astral-sh/setup-uv@v2
# with:
# enable-cache: true
# - uses: actions/setup-python@v5
# id: setup-python
# with:
# python-version: ${{ matrix.python-version }}
# - run: echo "UV_PYTHON=${{ steps.setup-python.outputs.python-path }}" >> $GITHUB_ENV
# - run: uv lock -P ${{ matrix.beets }}
# - run: uv sync --all-extras --dev
# - run: uv run pytest