Repository: equinor/pysand (language: python)

Issue:
Changed to python 3.9



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..abfff94
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,25 @@
+name: pySand Tests
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up Python 3.9
+        uses: actions/setup-python@v1
+        with:
+          python-version: 3.9
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install -r requirements.txt
+          pip install pytest
+      - name: Test with pytest
+        run: pytest -vv
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index aa630fa..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-language: python
-
-python:
-  - "3.6"
-  - "3.7"
-  - "3.8"
-  - "3.9"
-
-script:
-  - pip3 install numpy scipy pytest pandas
-  - pip3 install .
-  - pytest


Test patch:
diff --git a/tests/test_erosion.py b/tests/test_erosion.py
index e25aaa7..d96d7ff 100644
--- a/tests/test_erosion.py
+++ b/tests/test_erosion.py
@@ -60,7 +60,7 @@ def test_validate_inputs(caplog):
     num = 1
     kwargs = {'R': num, 'GF': num, 'D': num, 'd_p': num, 'h': num, 'Dm': num, 'D1': num, 'D2': num, 'alpha': num}
     for inp in ['R', 'GF', 'D', 'd_p', 'h', 'Dm', 'D1', 'D2', 'alpha']:
-        for non_number in [None, 'string', np.nan, pd.Series().any()]:
+        for non_number in [None, 'string', np.nan, pd.Series(dtype='float64').any()]:
             kwargs[inp] = non_number
             with pytest.raises(exc.FunctionInputFail) as excinfo:
                 validate_inputs(**kwargs)