From 0c32cd74d987e4a65042baaa9d023c1652baae13 Mon Sep 17 00:00:00 2001 From: Stephane Bruckert Date: Tue, 1 Nov 2022 21:26:01 +0000 Subject: [PATCH] Integration tests workflow --- .github/workflows/pythonapp.yml | 37 +++++++++++++++------------------ CHANGELOG.md | 2 +- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index d792c63..8d6c9c0 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -9,24 +9,21 @@ jobs: strategy: matrix: python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10"] - env: - SPOTIPY_CLIENT_ID: ${{ secrets.SPOTIPY_CLIENT_ID }} - SPOTIPY_CLIENT_SECRET: ${{ secrets.SPOTIPY_CLIENT_SECRET }} steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.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: Lint with flake8 - run: | - pip install -Iv enum34==1.1.6 # https://bitbucket.org/stoneleaf/enum34/issues/27/enum34-118-broken - pip install flake8 - flake8 . --count --show-source --statistics - - name: Run unit tests - run: | - python -m unittest discover -v tests/unit + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.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: Lint with flake8 + run: | + pip install -Iv enum34==1.1.6 # https://bitbucket.org/stoneleaf/enum34/issues/27/enum34-118-broken + pip install flake8 + flake8 . --count --show-source --statistics + - name: Run unit tests + run: | + python -m unittest discover -v tests/unit diff --git a/CHANGELOG.md b/CHANGELOG.md index d2d808d..8ce5bbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -* Make test app credentials available in GHA as secrets +* Integration tests workflow ## [2.21.0] - 2022-09-26