From 0ecf1fc45b4ca5d7665807bbc603c4092e6f04cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Stenstr=C3=B6m?= Date: Sun, 17 Jan 2021 23:25:56 +0100 Subject: [PATCH] Add GitHub Action for running tests. --- .github/workflows/index.yml | 32 ++++++++++++++++++++++++++++++++ tox.ini | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/index.yml diff --git a/.github/workflows/index.yml b/.github/workflows/index.yml new file mode 100644 index 00000000..ade109c4 --- /dev/null +++ b/.github/workflows/index.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - 2.7 + - 3.4 + - 3.5 + - 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: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Run tests + run: | + tox diff --git a/tox.ini b/tox.ini index 03151f9e..373233f5 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ envlist = flake8 isort -[tox:travis] +[gh-actions] 2.7 = py27-django111 3.4 = py34-django{111,20} 3.5 = py35-django{111,20,21,22}