Fix edge case when Pillow is not found #41
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: continuous integration | |
on: [push] | |
env: | |
DISCOGS_CONSUMER_KEY: ${{ secrets.DISCOGS_CONSUMER_KEY }} | |
DISCOGS_CONSUMER_SECRET: ${{ secrets.DISCOGS_CONSUMER_SECRET }} | |
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }} | |
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} | |
SPOTIFY_SP_DC: ${{ secrets.SPOTIFY_SP_DC }} | |
TIDAL_CLIENT_ID: ${{ secrets.TIDAL_CLIENT_ID }} | |
TIDAL_CLIENT_SECRET: ${{ secrets.TIDAL_CLIENT_SECRET }} | |
TIDAL_PRIVATE_CLIENT_ID: ${{ secrets.TIDAL_PRIVATE_CLIENT_ID }} | |
TIDAL_PRIVATE_CLIENT_SECRET: ${{ secrets.TIDAL_PRIVATE_CLIENT_SECRET }} | |
jobs: | |
build: | |
name: Continuous integration (Python ${{ matrix.python-version }}) | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: FedericoCarboni/setup-ffmpeg@v2 | |
id: setup-ffmpeg | |
- name: Install required dependencies using pip | |
run: | | |
python3 -m pip install -r requirements_minimal.txt | |
- name: Lint with ruff | |
run: | | |
python3 -m pip install ruff | |
ruff --target-version=py39 . | |
continue-on-error: true | |
- name: Test with coverage and pytest | |
run: | | |
python3 -m pip install coverage pytest | |
coverage run -m pytest |