diff options
| author | Nejc Habjan <hab.nejc@gmail.com> | 2021-01-27 01:29:24 +0100 |
|---|---|---|
| committer | Nejc Habjan <hab.nejc@gmail.com> | 2021-01-27 01:38:59 +0100 |
| commit | 2de64cfa469c9d644a2950d3a4884f622ed9faf4 (patch) | |
| tree | 52d99948a62b45a2129afc350e70824b559d7ae6 /.github/workflows/test.yml | |
| parent | 150207908a72869869d161ecb618db141e3a9348 (diff) | |
| download | gitlab-2de64cfa469c9d644a2950d3a4884f622ed9faf4.tar.gz | |
chore(ci): add coverage and docs jobs
Diffstat (limited to '.github/workflows/test.yml')
| -rw-r--r-- | .github/workflows/test.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a666ac..44708d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: env: TOXENV: ${{ matrix.toxenv }} run: tox + functional: runs-on: ubuntu-20.04 strategy: @@ -46,3 +47,25 @@ jobs: env: TOXENV: ${{ matrix.toxenv }} run: tox + + coverage: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install dependencies + run: pip install tox pytest-github-actions-annotate-failures + - name: Run tests + env: + PY_COLORS: 1 + TOXENV: cover + run: tox + - name: Upload codecov coverage + uses: codecov/codecov-action@v1 + with: + files: ./coverage.xml + flags: unit + fail_ci_if_error: true |
