Repository: xuhongzuo/DeepOD (language: python)

Issue:
merge main to dev



Discussion / hints:

Fix patch:
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..260b26f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,27 @@
+language: python
+dist: xenial
+
+python:
+  - "3.6"
+  - "3.7"
+  - "3.8"
+  - "3.9"
+
+install:
+  - pip install --upgrade pip
+  - pip install -r requirements.txt
+  - pip install -r requirements_ci.yml
+
+# command to run tests
+script:
+   pytest --cov=deepod/
+
+after_success:
+  - coveralls
+
+notifications:
+  email:
+    recipients:
+      - hongzuoxu@126.com
+  on_success: never # default: change
+  on_failure: always # default: always
diff --git a/README.rst b/README.rst
index 31a32e0..812bc42 100644
--- a/README.rst
+++ b/README.rst
@@ -7,9 +7,12 @@ Python Deep Outlier/Anomaly Detection (DeepOD)
 
 .. image:: https://github.com/xuhongzuo/DeepOD/actions/workflows/testing.yml/badge.svg
    :target: https://github.com/xuhongzuo/DeepOD/actions/workflows/testing.yml
-   :alt: testing
-
-
+   :alt: testing2
+   
+.. image:: https://pepy.tech/badge/deepod
+   :target: https://pepy.tech/project/deepod
+   :alt: downlods
+   
 
 **DeepOD** is an open-source python framework for deep learning-based anomaly detection on multivariate data. DeepOD provides unified low-code implementation of different detection models based on PyTorch.
 
diff --git a/requirements.txt b/requirements.txt
index db78999..16e24f5 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,4 +2,4 @@ numpy>=1.19
 scipy>=1.5.1
 scikit_learn>=0.20.0
 pandas>=1.0.0
-torch>=1.10.0
\ No newline at end of file
+torch>=1.10.0
diff --git a/requirements_ci.yml b/requirements_ci.yml
new file mode 100644
index 0000000..233403e
--- /dev/null
+++ b/requirements_ci.yml
@@ -0,0 +1,4 @@
+pytest==5.2.1
+pytest-cov==2.10.0
+coveralls==2.1.1
+setuptools>=49.6.0
\ No newline at end of file


Test patch:
diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml
index ec87569..62ac997 100644
--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -43,14 +43,21 @@ jobs:
         pip install pytest
         pip install coverage
         pip install build
-        
-    - name: Build package
-      run: python -m build
-      
+        pip install coveralls
+
     - name: Test with pytest
       run: |
         coverage run --source=pyod -m pytest
-        
+
+    - name: coverage report
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      run: |
+        coveralls --service=github
+
+#    - name: Build package
+#      run: python -m build
+
 #     - name: Publish package
 #       uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
 #       with:
diff --git a/.github/workflows/testing_conda.yml b/.github/workflows/testing_conda.yml
index 50c3e3f..0330f13 100644
--- a/.github/workflows/testing_conda.yml
+++ b/.github/workflows/testing_conda.yml
@@ -14,13 +14,16 @@ jobs:
       uses: actions/setup-python@v3
       with:
         python-version: 3.8
+
     - name: Add conda to system path
       run: |
         # $CONDA is an environment variable pointing to the root of the miniconda directory
         echo $CONDA/bin >> $GITHUB_PATH
+
     - name: Install dependencies
       run: |
         conda env update --file environment.yml --name base
+
     - name: Lint with flake8
       run: |
         conda install flake8
@@ -28,6 +31,7 @@ jobs:
         flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
         # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
         flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
+
     - name: Test with pytest
       run: |
         conda install pytest
@@ -35,9 +39,3 @@ jobs:
         conda install coveralls
         pytest
         coverage run --source=deepod -m pytest
-
-    - name: coverage report
-      env:
-        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-      run: |
-        coveralls --service=github
\ No newline at end of file