Skip to content

Commit

Permalink
Create a CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Jan 7, 2020
1 parent 18f7b5f commit b9556b9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
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 }}

0 comments on commit b9556b9

Please sign in to comment.