-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: migrate to GitHub Actions (#387)
* Add CI workflow using GitHub Actions * Replace CI badges - Travis CI badge with GitHub Actions CI badge - coveralls badge with codecov badge * Remove Travis CI settings * Restrict permissions on CI workflow for security * Pass `TERM` environment variable on running tests in CI
- Loading branch information
Showing
3 changed files
with
41 additions
and
82 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,37 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PYTEST_ADDOPTS: "--cov-report=xml --color=yes" | ||
TOX_TESTENV_PASSENV: 'TERM' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
python: ['3.10', '3.9', '3.8'] | ||
include: | ||
- python: '3.10' | ||
toxenv: py310-cov | ||
- python: '3.9' | ||
toxenv: py39-cov | ||
- python: '3.8' | ||
toxenv: py38-cov | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '${{ matrix.python }}' | ||
- run: pip install tox | ||
- run: tox | ||
env: | ||
TOXENV: '${{ matrix.toxenv }}' | ||
TERM: xterm | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: coverage.xml |
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