-
Notifications
You must be signed in to change notification settings - Fork 21
56 lines (49 loc) · 1.57 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
name: Check and test
on: [push, pull_request]
env:
FORCE_COLOR: 1
jobs:
build:
strategy:
matrix:
# os: ["ubuntu-latest"]
# python-version:
# - "3.8" # minimum required
# - "3.12" # latest
# - "3.13-dev" # next
include:
- python-version: 3.8
os: windows-2022
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.python-version == '3.13-dev' }}
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: poetry env use ${{ steps.setup-python.outputs.python-path }}
- run: poetry install
# - run: poetry run ruff format --check
# - run: poetry run ruff check
# - run: poetry run pyright --warnings
- run: poetry run pytest -k "ExternalCopyTest or ExternalConvertTest"
- uses: coverallsapp/github-action@v2
if: github.event_name == 'pull_request' && matrix.python-version == '3.8'
# build-beets-master:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - run: pip install poetry
# - uses: actions/setup-python@v5
# with:
# python-version: 3.8
# cache: poetry
# - run: poetry env use $(which python)
# - run: poetry install
# # We cannot use `poetry add` because poetry does not install beets
# # dependencies properly
# - run: poetry run pip install "git+https://github.com/beetbox/beets#master"
# - run: poetry run pytest