Skip to content

Commit fafa12e

Browse files
committed
github: add CI tests
1 parent 678dc59 commit fafa12e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-20.04
8+
env:
9+
READTHEDOCS: "True" # work around bleak import error
10+
steps:
11+
- uses: actions/checkout@v2
12+
- run: pipx install poetry
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.8'
16+
- run: poetry install
17+
- run: poetry run pytest
18+
- run: poetry run flake8 --show-source
19+
if: ${{ success() || failure() }}
20+
- run: poetry run black --check --diff
21+
if: ${{ success() || failure() }}
22+
- run: poetry run make -C docs/ html
23+
if: ${{ success() || failure() }}
24+
- run: poetry run coverage run
25+
- run: |
26+
pipx install coveralls
27+
pipx inject coveralls toml
28+
- run: coveralls --service=github
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)