summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/docs.yml39
-rw-r--r--.github/workflows/test.yml23
2 files changed, 62 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 0000000..04f47b6
--- /dev/null
+++ b/.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
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