Skip to content

Commit

Permalink
chore(ci): add coverage and docs jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch committed Jan 27, 2021
1 parent 1502079 commit 2de64cf
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
@@ -0,0 +1,39 @@
name: Docs

on: [push, pull_request]

env:
PY_COLORS: 1

jobs:
sphinx:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install tox
- name: Build docs
env:
TOXENV: docs
run: tox

twine-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install tox twine wheel
- name: Check twine readme rendering
env:
TOXENV: twine-check
run: |
python3 setup.py sdist bdist_wheel
tox
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -29,6 +29,7 @@ jobs:
env:
TOXENV: ${{ matrix.toxenv }}
run: tox

functional:
runs-on: ubuntu-20.04
strategy:
Expand All @@ -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

0 comments on commit 2de64cf

Please sign in to comment.