summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..d5fe93f
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,38 @@
+name: Test
+
+on:
+ - push
+ - pull_request
+
+jobs:
+ build:
+ name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }}
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version:
+ - 3.4
+ - 3.6
+ - pypy3
+ tox-environment:
+ - django11
+ - django22
+
+ env:
+ TOXENV: ${{ matrix.tox-environment }}
+
+ 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 tox
+
+ - name: Run tests
+ run: tox