Skip to content

Commit

Permalink
Bye travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Dec 8, 2020
1 parent a079abe commit c0b5a93
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 44 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:
push:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]
steps:
- uses: "actions/checkout@v2"
with:
# some tests work on the git history so we need all of it!
fetch-depth: 0
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: python -m pip install tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
run: python -m tox
- name: Coveralls
if: ${{ matrix.python-version != 2.7 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m pip install coveralls
coveralls
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions tox.ini
Expand Up @@ -13,6 +13,15 @@ envlist =
py39
check_readme

[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38, check_readme
3.9: py39

[testenv]
skip_missing_interpreters = True
usedevelop = True
Expand All @@ -28,6 +37,7 @@ deps=
commands=
python setup.py check -r -s


[testenv:pre_commit]
deps =
pre-commit
Expand Down

0 comments on commit c0b5a93

Please sign in to comment.