-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: transition from circleci to github workflows
- Loading branch information
1 parent
3ac3113
commit eec91a3
Showing
3 changed files
with
63 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,60 @@ | ||
# This is a GitHub workflow defining a set of jobs with a set of steps. | ||
# ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions | ||
# | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
flake8: | ||
name: Run flake8 | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
pip install --no-cache-dir -r dev-requirements.txt | ||
pip install . | ||
- name: Run tests | ||
run: | | ||
flake8 | ||
pytest: | ||
name: Run pytests | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python-version: 3.6 | ||
- python-version: 3.7 | ||
- python-version: 3.8 | ||
- python-version: 3.9 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "${{ matrix.python-version}}" | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
pip install --no-cache-dir -r dev-requirements.txt | ||
pip install . | ||
- name: Run tests | ||
continue-on-error: ${{ matrix.accept-failure == true }} | ||
run: | | ||
pytest --verbose --maxfail=2 --color=yes | ||
- name: Upload code coverage report | ||
run: codecov |
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