Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Jan 11, 2024
1 parent ff51a5b commit 2c707f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
pull_request:
branches:
- main
paths:
- ytmusicapi/**
- tests/**

jobs:
build:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docsbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
paths:
- ytmusicapi/**
- docs/**
pull_request:
branches:
- main
paths:
- ytmusicapi/**
- docs/**

jobs:
build:
Expand Down

0 comments on commit 2c707f2

Please sign in to comment.