Repository: django-compressor/django-appconf (language: python)

Issue:
Move to GitHub Actions.
See #75


Discussion / hints:

Fix patch:
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 6eccb45..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,89 +0,0 @@
-sudo: false
-language: python
-dist: bionic
-
-matrix:
-  fast_finish: true
-  allow_failures:
-    - env: TOXENV=py36-djmaster
-    - env: TOXENV=py37-djmaster
-    - env: TOXENV=py38-djmaster
-  include:
-    # Python version is just for the look on travis.
-    - python: 3.5
-      env: TOXENV=py35-dj111
-
-    - python: 3.5
-      env: TOXENV=py35-dj20
-
-    - python: 3.5
-      env: TOXENV=py35-dj21
-
-    - python: 3.5
-      env: TOXENV=py35-dj22
-
-    - python: 3.6
-      env: TOXENV=py36-dj111
-
-    - python: 3.6
-      env: TOXENV=py36-dj20
-
-    - python: 3.6
-      env: TOXENV=py36-dj21
-
-    - python: 3.6
-      env: TOXENV=py36-dj22
-
-    - python: 3.6
-      env: TOXENV=py36-dj30
-
-    - python: 3.6
-      env: TOXENV=py36-djmaster
-
-    - python: 3.7
-      env: TOXENV=py37-dj111
-
-    - python: 3.7
-      env: TOXENV=py37-dj20
-
-    - python: 3.7
-      env: TOXENV=py37-dj21
-
-    - python: 3.7
-      env: TOXENV=py37-dj22
-
-    - python: 3.7
-      env: TOXENV=py37-dj30
-
-    - python: 3.7
-      env: TOXENV=py37-djmaster
-
-    - python: 3.8
-      env: TOXENV=py38-dj111
-
-    - python: 3.8
-      env: TOXENV=py38-dj20
-
-    - python: 3.8
-      env: TOXENV=py38-dj21
-
-    - python: 3.8
-      env: TOXENV=py38-dj22
-
-    - python: 3.8
-      env: TOXENV=py38-dj30
-
-    - python: 3.8
-      env: TOXENV=py38-djmaster
-
-install:
-  - pip install tox codecov
-
-script:
-  - tox -e $TOXENV
-
-notifications:
-  irc: "irc.freenode.org#django-compressor"
-
-after_success:
-  - codecov
diff --git a/tox.ini b/tox.ini
index db3cd62..0d8aa05 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,16 +3,16 @@ skipsdist = True
 usedevelop = True
 minversion = 1.11
 envlist =
-    flake8-py37,
-    py{35,36,37,38}-dj{111,20,21,22},
-    py{36,37,38}-dj{30,master}
+    flake8-py39,
+    py{36,37,38}-dj{22,31,32},
+    py{38}-dj{main}
 
 [testenv]
 basepython =
-    py35: python3.5
     py36: python3.6
     py37: python3.7
     py38: python3.8
+    py39: python3.9
     pypy: pypy
 usedevelop = true
 setenv =
@@ -21,18 +21,16 @@ setenv =
 deps =
 	py{35,36,37,38,pypy}: coverage
     django-discover-runner
-    dj111: Django>=1.11,<2.0
-    dj20: Django>=2.0,<2.1
-    dj21: Django>=2.1,<2.2
-    dj22: Django>=2.2,<2.3
-    dj30: Django>=3.0,<3.1
-    djmaster: https://github.com/django/django/archive/master.tar.gz#egg=django
+    dj22: Django>=2.2,<3.0
+    dj31: Django>=3.1,<3.2
+    dj32: Django>=3.2,<4.0        
+    djmain: https://github.com/django/django/archive/main.tar.gz#egg=django
 
 commands =
-    coverage run {envbindir}/django-admin.py test -v2 {posargs:tests}
+    coverage run {envbindir}/django-admin test -v2 {posargs:tests}
     coverage report
 
-[testenv:flake8-py37]
+[testenv:flake8-py39]
 commands = flake8 appconf
 deps = flake8
 


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..cd4923b
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,28 @@
+name: Run Tests
+on: [push]
+jobs:
+  tests:
+    name: Python ${{ matrix.python-version }}
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      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: |
+          python -m pip install --upgrade pip wheel setuptools
+          python -m pip install --upgrade tox tox-py coverage
+      - name: Run tox targets for ${{ matrix.python-version }}
+        run: tox --py current
+      - name: codecov
+        uses: codecov/codecov-action@v2
\ No newline at end of file