Skip to content

Commit

Permalink
first action
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Dec 2, 2020
1 parent 22761d9 commit 885423b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- master
tags:
- v*
pull_request:

jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
TOXENV: py27,py36,coverage,coveralls
strategy:
max-parallel: 5
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
13 changes: 10 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[tox]
envlist =
py27,py34,py35,py36,
coverage,lint
envlist = py27, py35, py36, py37, py38, py39, coverage

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

[testenv]
basepython =
Expand All @@ -10,6 +16,7 @@ basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
py2: python2.7
py3: python3.6

Expand Down

0 comments on commit 885423b

Please sign in to comment.