Repository: ipwnponies/pytest-antilru (language: python)

Issue:
Tests are broken
See this run: https://github.com/ipwnponies/pytest-antilru/actions/runs/5980855065
There are a host of environmental issues. Since there's been no code changes, this is very likely to be related to github test environment. On cursory glance, python 2.7 is deprecated. The other environment need to be updated too.

Once fixed, the tests need to be run on a periodic schedule. This will alert of these class of issues sooner.


Discussion / hints:

Fix patch:
diff --git a/tox.ini b/tox.ini
index a4dd7d3..85fbde3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,7 +25,10 @@ deps =
     pytest6: pytest==6.*
     pytest7: pytest~=7.0.0rc1
     coverage
-passenv = HOME SSH_AUTH_SOCK USER
+passenv =
+    HOME
+    SSH_AUTH_SOCK
+    USER
 commands =
     coverage run -m pytest tests/main_test.py::test_a_run_first tests/main_test.py::test_b_run_second
     coverage run -m pytest tests/main_test.py


Test patch:
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 3971f53..a56144e 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -3,7 +3,10 @@
 
 name: Python package
 
-on: push
+on:
+  push:
+  schedule:
+    - cron: '0 2 * * SAT'
 
 jobs:
   build:
@@ -13,7 +16,6 @@ jobs:
       fail-fast: false
       matrix:
         python-version:
-          - "2.7"
           - "3.5"
           - "3.6"
           - "3.7"
@@ -21,8 +23,6 @@ jobs:
           - "3.9"
         include:
           - os: ubuntu-latest
-          - os: ubuntu-20.04
-            python-version: "2.7"
           - os: ubuntu-20.04
             python-version: "3.5"
           - os: ubuntu-20.04