From 2f1873d12009cb6af55d4c9258f5bbd35a60d55f Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 30 Apr 2021 21:47:21 +0200 Subject: [PATCH] Add inital GitHub Actions --- .github/dependabot.yml | 6 ++++++ .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ tox.ini | 8 ++++++++ 3 files changed, 41 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..123014908 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..9a5c331f7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Tests (tox) + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install tox tox-gh-actions + + - name: Test with tox + run: tox diff --git a/tox.ini b/tox.ini index a391d61c3..002746b1a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,14 @@ [tox] envlist = py36, py37, py38, py39, flake8 +[gh-actions] +python = + 3.5: py35 + 3.6: py36 + 3.7: py37 + 3.8: py38 + 3.9: py39, flak8 + [testenv] commands = {envbindir}/py.test --tb=short \