fix ci #48
Workflow file for this run
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
name: Code coverage | |
on: | |
push | |
jobs: | |
build: | |
environment: default | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.x | |
- name: Generate coverage report | |
env: | |
SETTINGS_INI: ${{ secrets.SETTINGS_INI }} | |
SPOTIPY_CACHE: ${{ secrets.SPOTIPY_CACHE }} | |
run: | | |
pip install -e . | |
pip install coverage | |
cat <<< "$SETTINGS_INI" > spotify_to_ytmusic/settings.ini | |
mkdir -p .cache | |
cat <<< "$SPOTIPY_CACHE" > spotipy.cache | |
coverage run | |
coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: coverage.xml | |
flags: unittests | |
fail_ci_if_error: true |