update workflows

This commit is contained in:
sigma67 2024-01-11 20:43:07 +01:00
commit 2c707f206a
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0
2 changed files with 11 additions and 0 deletions

View file

@ -10,6 +10,9 @@ on:
pull_request:
branches:
- main
paths:
- ytmusicapi/**
- tests/**
jobs:
build:
@ -38,6 +41,8 @@ jobs:
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
cat <<< "$HEADERS_AUTH" > tests/browser.json
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 coverage xml
- name: Upload coverage to Codecov