From 459be3d400c7030ca6137516ba23e2aee70fd70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bruckert?= Date: Tue, 1 Nov 2022 21:36:43 +0000 Subject: [PATCH] Integration tests workflow (2) --- .github/workflows/integration_tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/integration_tests.yml diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml new file mode 100644 index 0000000..a808c61 --- /dev/null +++ b/.github/workflows/integration_tests.yml @@ -0,0 +1,25 @@ +name: Integration tests + +on: [push, pull_request_target] + +jobs: + build: + + runs-on: ubuntu-latest + env: + SPOTIPY_CLIENT_ID: ${{ secrets.SPOTIPY_CLIENT_ID }} + SPOTIPY_CLIENT_SECRET: ${{ secrets.SPOTIPY_CLIENT_SECRET }} + PYTHON_VERSION: "3.10" + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install .[test] + - name: Run non user endpoints integration tests + run: | + python -m unittest discover -v tests/integration/non_user_endpoints