-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edit_playlist(): Allow moving title to bottom of playlist (#602)
* Allow moving title to bottom of playlist * test_edit_playlist fixed & extended * add labeled coverage workflow run for external PRs * add labeled coverage workflow run for external PRs * add labeled coverage workflow run for external PRs * add another pr target workflow --------- Co-authored-by: Ricardo <ric.ce.br@gmail.com> Co-authored-by: sigma67 <sigma67.github@gmail.com>
- Loading branch information
1 parent
33098ba
commit 11823d6
Showing
4 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Code coverage | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- ytmusicapi/** | ||
- tests/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v4 | ||
- name: create-json | ||
uses: jsdaniell/create-json@v1.2.3 | ||
with: | ||
name: "oauth.json" | ||
dir: "tests/" | ||
json: ${{ secrets.OAUTH_JSON }} | ||
- name: Install dependencies | ||
run: pdm install | ||
- name: Generate coverage report | ||
env: | ||
HEADERS_AUTH: ${{ secrets.HEADERS_AUTH }} | ||
TEST_CFG: ${{ secrets.TEST_CFG }} | ||
run: | | ||
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 coverage xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
file: coverage.xml | ||
flags: unittests | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters