summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-01-27 01:29:24 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-01-27 01:38:59 +0100
commit2de64cfa469c9d644a2950d3a4884f622ed9faf4 (patch)
tree52d99948a62b45a2129afc350e70824b559d7ae6
parent150207908a72869869d161ecb618db141e3a9348 (diff)
downloadgitlab-2de64cfa469c9d644a2950d3a4884f622ed9faf4.tar.gz
chore(ci): add coverage and docs jobs
-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