Skip to content

Add ugc_image_upload scope to playlist_cover_image_upload #65

Add ugc_image_upload scope to playlist_cover_image_upload

Add ugc_image_upload scope to playlist_cover_image_upload #65

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags-ignore:
- "*"
pull_request:
jobs:
matrix:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.12"]
name: Python ${{matrix.python-version}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -r requirements/tests
pip install .
- name: Run test suite
run: pytest
full-build:
name: User-authorised tox suite with coverage
runs-on: ubuntu-latest
env:
SPOTIFY_CLIENT_ID: ${{secrets.SPOTIFY_CLIENT_ID}}
SPOTIFY_CLIENT_SECRET: ${{secrets.SPOTIFY_CLIENT_SECRET}}
SPOTIFY_REDIRECT_URI: ${{secrets.SPOTIFY_REDIRECT_URI}}
SPOTIFY_USER_REFRESH: ${{secrets.SPOTIFY_USER_REFRESH}}
TEKORE_TEST_SKIP_IS_FAIL: True
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -r requirements/dev
pip install .
- name: Initialise coverage reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Run tox
run: |
tox
echo "TEST_RESULT=$?" >> $GITHUB_ENV
- name: Post coverage
run: |
export GIT_COMMIT_SHA=$GITHUB_SHA
export GIT_BRANCH=${GITHUB_HEAD_REF#refs/heads/}
coverage xml
./cc-test-reporter after-build --exit-code $TEST_RESULT