update workflows
This commit is contained in:
parent
ff51a5bb40
commit
2c707f206a
2 changed files with 11 additions and 0 deletions
5
.github/workflows/coverage.yml
vendored
5
.github/workflows/coverage.yml
vendored
|
|
@ -10,6 +10,9 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- ytmusicapi/**
|
||||||
|
- tests/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -38,6 +41,8 @@ jobs:
|
||||||
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
|
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
|
||||||
cat <<< "$HEADERS_AUTH" > tests/browser.json
|
cat <<< "$HEADERS_AUTH" > tests/browser.json
|
||||||
cat <<< "$TEST_CFG" > tests/test.cfg
|
cat <<< "$TEST_CFG" > tests/test.cfg
|
||||||
|
(echo "===== tests attempt: 1 ====" && pdm run pytest) || \
|
||||||
|
(echo "===== tests attempt: 2 ====" && pdm run pytest)
|
||||||
pdm run pytest
|
pdm run pytest
|
||||||
pdm run coverage xml
|
pdm run coverage xml
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
|
|
|
||||||
6
.github/workflows/docsbuild.yml
vendored
6
.github/workflows/docsbuild.yml
vendored
|
|
@ -5,6 +5,12 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- ytmusicapi/**
|
- ytmusicapi/**
|
||||||
- docs/**
|
- docs/**
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- ytmusicapi/**
|
||||||
|
- docs/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue