Skip to content

Commit

Permalink
Parametrise CI unit-tests with extras for 3rd-party libs
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Vasilyev <[email protected]>
  • Loading branch information
nolar committed Feb 7, 2021
1 parent bfcf13c commit 6401cae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
fail-fast: false
matrix:
python-version: [ "3.7", "3.8", "3.9" ]
name: Python ${{ matrix.python-version }}
extras: [ "", "full-auth" ]
name: Python ${{ matrix.python-version }} ${{ matrix.extras }}
runs-on: ubuntu-20.04
timeout-minutes: 5 # usually 2-3 mins
steps:
Expand All @@ -40,6 +41,8 @@ jobs:
python-version: ${{ matrix.python-version }}

- run: pip install -r requirements.txt
- run: pip install -e .[${{ matrix.extras }}]
if: ${{ matrix.extras }}
- run: mypy kopf --strict --pretty
- run: pytest --color=yes --cov=kopf --cov-branch

Expand Down

0 comments on commit 6401cae

Please sign in to comment.