From 885423b686c9d8e0f7aad167c5d5e50292d2fa50 Mon Sep 17 00:00:00 2001 From: ernestoarbitrio Date: Wed, 2 Dec 2020 12:02:03 +0100 Subject: [PATCH] first action --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ tox.ini | 13 ++++++++++--- 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..f680a2fbb --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/tox.ini b/tox.ini index 493fae414..750d71131 100644 --- a/tox.ini +++ b/tox.ini @@ -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 = @@ -10,6 +16,7 @@ basepython = py35: python3.5 py36: python3.6 py37: python3.7 + py38: python3.8 py2: python2.7 py3: python3.6