-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (36 loc) · 957 Bytes
/
tests.yml
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
name: Tests
on:
schedule:
- cron: "26 5 * * *" # Every day, 05:26 UTC
push:
branches:
- main
paths:
- "syncedlyrics/**"
pull_request:
branches:
- main
paths:
- "syncedlyrics/**"
workflow_dispatch:
jobs:
provider-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Installing poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Inatalling dependencies
run: |
poetry env use ${{ matrix.python-version }}
poetry install
- name: Running provider tests
run: poetry run python -m pytest -k "not netease" --durations=0 -vv -s --log-cli-level=DEBUG tests.py