Update coverage.yml

This commit is contained in:
sigma67 2023-04-05 14:35:01 +02:00
commit 34ad3c4c30

View file

@ -12,6 +12,12 @@ jobs:
uses: actions/setup-python@master
with:
python-version: 3.x
- name: create-json
uses: jsdaniell/create-json@1.2.2
with:
name: "oauth.json"
dir: "tests/"
json: ${{ secrets.OAUTH_JSON }}
- name: Generate coverage report
env:
HEADERS_AUTH: ${{ secrets.HEADERS_AUTH }}
@ -21,7 +27,6 @@ jobs:
pip install coverage
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
cat <<< "$HEADERS_AUTH" > tests/headers_auth.json
cat <<< "$OAUTH_JSON" > tests/oauth.json
cat <<< "$TEST_CFG" > tests/test.cfg
coverage run
coverage xml