Repository: fatiando/choclo (language: python)

Issue:
Use Ubuntu 20.04 for testing with Python 3.6 in Actions
Running tests on GitHub Actions with `ubuntu` uses Ubuntu 22.04 since
recently. 22.04 doesn't offer a candidate to install Python 3.6, so we
need to run them against the previous LTS version: 20.04.



Discussion / hints:

Fix patch:
diff --git a/setup.cfg b/setup.cfg
index eb957cc8..a25862b1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -23,7 +23,6 @@ classifiers =
     Topic :: Scientific/Engineering
     Topic :: Software Development :: Libraries
     Programming Language :: Python :: 3 :: Only
-    Programming Language :: Python :: 3.6
     Programming Language :: Python :: 3.7
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3.9
@@ -38,7 +37,7 @@ project_urls =
 [options]
 zip_safe = True
 packages = find:
-python_requires = >=3.6
+python_requires = >=3.7
 install_requires =
     numpy>=1.19
     numba>=0.52


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 00e66c07..20ef8ff5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -31,22 +31,16 @@ jobs:
   # Run tests and upload to codecov
   test:
     name: ${{ matrix.os }} python=${{ matrix.python }} dependencies=${{ matrix.dependencies }}
-    runs-on: ${{ matrix.os }}
+    runs-on: ${{ matrix.os }}-latest
     strategy:
       # Otherwise, the workflow would stop if a single job fails. We want to
       # run all of them to catch failures in different combinations.
       fail-fast: false
       matrix:
-        os: [ubuntu-latest, macos-latest, windows-latest]
-        python: ["3.6", "3.10"]
-        exclude: # There is no Python 3.6 available on Ubuntu 22.04
-          - os: ubuntu-latest
-            python: "3.6"
+        os: [ubuntu, macos, windows]
+        python: ["3.7", "3.10"]
         include:
-          - python: "3.6"
-            dependencies: oldest
-          - python: "3.6" # add instance of Python 3.6 and Ubuntu 20.04
-            os: "ubuntu-20.04"
+          - python: "3.7"
             dependencies: oldest
           - python: "3.10"
             dependencies: latest