-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from richm/github-actions
use github actions instead of travis
- Loading branch information
Showing
5 changed files
with
67 additions
and
9 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,62 @@ | ||
name: tox | ||
on: # yamllint disable-line rule:truthy | ||
- pull_request | ||
jobs: | ||
python: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
pyver: ['2.7', '3.6', '3.7', '3.8', '3.9'] | ||
steps: | ||
- name: checkout PR | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.pyver }} | ||
- name: Install platform dependencies, python, tox | ||
run: | | ||
set -euxo pipefail | ||
python -m pip install --upgrade pip | ||
pip install -rtox_requirements.txt | ||
- name: Run tox tests | ||
run: | | ||
set -euxo pipefail | ||
tox | ||
env: | ||
COVERALLS_CMD: coveralls | ||
COVERALLS_PARALLEL: "true" | ||
python-26: | ||
runs-on: ubuntu-16.04 | ||
steps: | ||
- name: checkout PR | ||
uses: actions/checkout@v2 | ||
- name: Install python, dependencies | ||
run: | | ||
set -euo pipefail | ||
curl -sSf --retry 5 -o python-2.6.tar.bz2 ${PY26URL} | ||
sudo tar xjf python-2.6.tar.bz2 --directory / | ||
myuid=$(id -u) | ||
mygid=$(id -g) | ||
sudo chown -R $myuid:$mygid /home/travis/virtualenv | ||
source /home/travis/virtualenv/python2.6/bin/activate | ||
set -x | ||
pip install -rtox_requirements.txt | ||
env: | ||
# yamllint disable-line rule:line-length | ||
PY26URL: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/14.04/x86_64/python-2.6.tar.bz2 | ||
VIRTUAL_ENV_DISABLE_PROMPT: "true" | ||
- name: Run tox tests | ||
run: | | ||
set -euo pipefail | ||
source /home/travis/virtualenv/python2.6/bin/activate | ||
set -x | ||
tox -e py26-tox20 | ||
env: | ||
COVERALLS_CMD: "echo skipping coveralls" | ||
SAFETY_CMD: "echo skipping safety" | ||
VIRTUAL_ENV_DISABLE_PROMPT: "true" | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tox<3 ; python_version < "2.7" | ||
virtualenv==15.* ; python_version < "2.7" | ||
pluggy==0.5.* ; python_version < "2.7" | ||
coveralls ; python_version > "2.6" |
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.