Repository: dimagi/quickcache (language: python)

Issue:
Run tests against python 3.10 as well
The test failure in https://github.com/dimagi/quickcache/pull/22 on 3.10 looked possibly ephemeral, so trying here again.
lazy string evaluation for logging
hello friends. originally i was just looking to change the debug logging to use lazy string interpolation, but got a bit carried away when i ran pylint. i think i only applied the least controversial of python 3 items.

commits should be fairly clean if you want to go 🐡 / 🐡 

lazy logging warning: https://pylint.pycqa.org/en/latest/messages/warning/logging-not-lazy.html

3.8 and 3.9 tests passed. appears that 3.10 does not exist on travis (at least with xenial?) and 3.7 has a strange error that almost looks internal to their python setup?



Discussion / hints:

Fix patch:
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 5b8776e..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-dist: xenial
-language: python
-python:
- - 3.8
- - 3.9
-script:
-- "python setup.py test"


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..49efe80
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,28 @@
+# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
+
+name: quickcache tests
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        python-version: ["3.7", "3.8", "3.9", "3.10"]
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Python ${{ matrix.python-version }}
+      uses: actions/setup-python@v2
+      with:
+        python-version: ${{ matrix.python-version }}
+    - name: Run tests
+      run: |
+        python setup.py test