-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18f7b5f
commit b9556b9
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
test: | ||
name: Test w/ Python ${{ matrix.python_version }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python_version: ['3.6', '3.7', '3.8'] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
- run: pip install flit | ||
- run: flit install --deps develop | ||
- name: Run tests | ||
run: pytest --cov=gidgethub | ||
- name: Check type hints | ||
run: mypy --ignore-missing-imports --strict gidgethub/*.py | ||
- name: Check docs | ||
run: sphinx-build -nW -q -b html -b linkcheck -d docs/_build/doctrees docs docs/_build/html | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |