implement oauth authentication (#10)

This commit is contained in:
sigma67 2023-04-05 00:00:59 +02:00 • committed by sigma67
commit 0ee3b7fdb5
14 changed files with 280 additions and 123 deletions

View file

@ -19,11 +19,10 @@ jobs:
run: |
pip install -e .
pip install coverage
cd tests
curl -o test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
cat <<< "$HEADERS_AUTH" > headers_auth.json
cat <<< "$TEST_CFG" > test.cfg
coverage run --source=../ytmusicapi -m unittest test.py
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
cat <<< "$HEADERS_AUTH" > tests/headers_auth.json
cat <<< "$TEST_CFG" > tests/test.cfg
coverage run
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3