test: updated test case for returned playlist #32
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: Test | |
on: | |
push: | |
paths: | |
- "**/*.py" | |
pull_request: | |
paths: | |
- "**/*.py" | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV | |
- name: Install dependencies | |
run: poetry install | |
- name: Run unit tests | |
run: | |
poetry run pytest tests/unittests/ | |
# integration-tests: | |
# runs-on: ubuntu-latest | |
# | |
# environment: integration-tests | |
# | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# | |
# - name: Set up Python | |
# uses: actions/setup-python@v4 | |
# with: | |
# python-version: "3.10" | |
# | |
# - name: Install Poetry | |
# run: | | |
# curl -sSL https://install.python-poetry.org | python3 - | |
# echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV | |
# | |
# - name: Install dependencies | |
# run: poetry install | |
# | |
# - name: Run integration tests | |
# env: | |
# SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }} | |
# SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} | |
# SPOTIFY_REDIRECT_URI: ${{ secrets.SPOTIFY_REDIRECT_URI }} | |
# run: poetry run pytest tests/integrationtests/ |