-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to GH Actions, drop pythons < 3.5 (#12)
* chore: migrate to GH Actions, drop pythons < 3.5 * chore: clean up Python 3.5 CI setup
- Loading branch information
Showing
6 changed files
with
104 additions
and
47 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,8 @@ | ||
[run] | ||
branch = True | ||
source = token_bucket | ||
|
||
parallel = True | ||
|
||
[report] | ||
show_missing = True |
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,87 @@ | ||
name: tests | ||
|
||
on: | ||
# Trigger the tests workflow on push or pull requests. | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run_tox: | ||
name: tox -e ${{ matrix.toxenv }} (${{matrix.python-version}} on ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
os: | ||
- "ubuntu-20.04" | ||
toxenv: | ||
- "pep8" | ||
include: | ||
- python-version: 3.5 | ||
os: ubuntu-16.04 | ||
toxenv: py35 | ||
- python-version: 3.6 | ||
os: ubuntu-20.04 | ||
toxenv: py36 | ||
- python-version: 3.7 | ||
os: ubuntu-20.04 | ||
toxenv: py37 | ||
- python-version: 3.8 | ||
os: ubuntu-20.04 | ||
toxenv: py38 | ||
- python-version: 3.9 | ||
os: ubuntu-20.04 | ||
toxenv: py39 | ||
- python-version: pypy3 | ||
os: ubuntu-20.04 | ||
toxenv: pypy3 | ||
|
||
# Steps to run in each job. | ||
# Some are GitHub actions, others run shell commands. | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
if: ${{ matrix.toxenv != 'py35' }} | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2.1.4 | ||
if: ${{ matrix.toxenv == 'py35' }} | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Set up Python 3.5 | ||
if: ${{ matrix.toxenv == 'py35' }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential curl python3.5 python3.5-dev | ||
python3.5 --version | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install coverage tox | ||
python --version | ||
pip --version | ||
tox --version | ||
coverage --version | ||
- name: Run tests | ||
run: tox -e ${{ matrix.toxenv }} | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
if: ${{ matrix.toxenv == 'py38' }} | ||
with: | ||
env_vars: PYTHON | ||
fail_ci_if_error: true |
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
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
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