-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (43 loc) · 1.25 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
name: Check and test
on: [push, pull_request]
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
- run: pip install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: poetry env use $(which python)
- run: poetry install
- run: poetry run ruff check .
- run: poetry run pytest
build-beets-versions:
runs-on: ubuntu-latest
strategy:
matrix:
beets:
- "git+https://github.com/beetbox/beets#master"
- "beets==1.6.1"
steps:
- run: sudo apt-get install flac mp3val oggz-tools
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v5
with:
python-version: 3.9
cache: poetry
- run: poetry env use $(which python)
- run: poetry install
- run: poetry add ${{ matrix.beets }}
- run: poetry run pytest