Repository: bennylope/django-taggit-labels (language: python)

Issue:
Enable testing on GitHub Actions



Discussion / hints:

Fix patch:
diff --git a/tox.ini b/tox.ini
index b5d52b0..69caaa1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,13 +8,6 @@ envlist =
 setenv =
     PYTHONPATH = {toxinidir}:{toxinidir}/taggit_labels
 commands = py.test {posargs}
-basepython =
-    py310: python3.10
-    py39: python3.9
-    py38: python3.8
-    py37: python3.7
-    pypy: pypy
-    pypy3: pypy3
 deps =
     django22: Django~=2.2
     django32: Django~=3.2


Test patch:
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
new file mode 100644
index 0000000..3d805e0
--- /dev/null
+++ b/.github/workflows/test.yaml
@@ -0,0 +1,33 @@
+name: Test
+
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
+
+    steps:
+      - uses: actions/checkout@v3
+
+      - name: Setup Python
+        uses: actions/setup-python@v3
+        with:
+          python-version: ${{ matrix.python }}
+
+      - name: Install tox and any other packages
+        run: pip install tox flake8
+
+      - name: Run tox
+        # Run tox using the version of Python in `PATH`
+        run: tox -e py
+
+      - name: Lint with flake8
+        run: flake8 .
+        continue-on-error: true