Repository: CSchoel/nolds (language: python)

Issue:
Fix CI pipeline.
The CI pipeline is currently broken. This concerns Python 2.7 specifically and apparently some of the actions we use.

## To-do

- [x] Check what is going on with Python 2.7. Disable it if necessary.
- [x] Check the actions we use that have an explicit version (e.g. `@v2`). They might need to be updated.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 796c0f1..b9bdc87 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -1,6 +1,6 @@
 on:
   push:
-    branches: ["main", "dev"]
+    branches: ["main", "dev", "v*"]
 
 name: build
 
@@ -8,11 +8,11 @@ jobs:
   build:
     strategy:
       matrix:
-        python: ["2.7", "3.7", "3.10"]
+        python: ["3.7", "3.10"]
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
+      - uses: actions/checkout@v4
+      - uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python }}
       - run: pip install codecov .
diff --git a/.gitignore b/.gitignore
index e0fc391..d555c2d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,4 +16,7 @@ coverage.xml
 temp
 
 # Vscode sphinx build files
-_build
\ No newline at end of file
+_build
+
+# virtual environment
+.venv


Test patch:
diff --git a/nolds/test_measures.py b/nolds/test_measures.py
index fcc06e8..6c0e9ce 100644
--- a/nolds/test_measures.py
+++ b/nolds/test_measures.py
@@ -345,7 +345,7 @@ def test_lorenz(self):
     data = datasets.lorenz_euler(n + discard, 10, 28, 8/3, start=(1,1,1), dt=0.012)
     x = data[discard:,1]
     rvals = nolds.logarithmic_r(1, np.e, 1.1)  # determined experimentally
-    cd = nolds.corr_dim(x, emb_dim, fit="poly", rvals=rvals, lag=5, debug_plot=True)
+    cd = nolds.corr_dim(x, emb_dim, fit="poly", rvals=rvals, lag=5)
     self.assertAlmostEqual(cd, 2.05, delta=0.1)
 
   def test_logistic(self):