From fd212090da8d1de11a3fab9d89e7813bb3e71371 Mon Sep 17 00:00:00 2001 From: Jonathas-Conceicao Date: Wed, 9 Sep 2020 15:48:53 -0300 Subject: [PATCH 1/2] tox: Update dependencies and drop py34 support Support for python 3.4 is being dropped as it has reached EOF Signed-off-by: Jonathas-Conceicao --- tox.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index f43f534..fdbd12b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,11 @@ [tox] -envlist = py34, py35, py36 +envlist = py35, py36, py37, py38 [testenv] deps = - pytest==2.9.1 - pytest-cov==2.2.1 - pytest-pep8==1.0.6 + pytest==5.4.* + pytest-cov==2.5.* + pytest-pep8==1.0.* commands = py.test tests/pkgschema/tests.py \ --cov={envsitepackagesdir}/pkgschema \ From 5fc974f31b77ec34c1218b66e0511f9b37d29576 Mon Sep 17 00:00:00 2001 From: Jonathas-Conceicao Date: Wed, 9 Sep 2020 15:54:04 -0300 Subject: [PATCH 2/2] CI: Add github actions integration Signed-off-by: Jonathas-Conceicao --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..81e3842 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + python: [3.5, 3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python }} + - name: Install Dependencies + run: pip install tox coveralls + - name: Run schemas tests + run: ./tests/schemas/run.sh + - name: Run Tox + run: tox -e py + - name: Coverage + run: coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +