]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Switch travis to github
authorRaphael Michel <mail@raphaelmichel.de>
Sun, 5 Jun 2022 18:13:01 +0000 (20:13 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Sun, 5 Jun 2022 18:13:01 +0000 (20:13 +0200)
.github/workflows/tests.yml [new file with mode: 0644]
.travis.yml [deleted file]
setup.py

diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644 (file)
index 0000000..b703a7f
--- /dev/null
@@ -0,0 +1,34 @@
+name: Tests
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    name: Tests
+    strategy:
+      matrix:
+        python-version:
+          - "3.6"
+          - "3.7"
+          - "3.8"
+          - "3.9"
+          - "3.10"
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v1
+        with:
+          python-version: ${{ matrix.python-version }}
+      - name: Install Dependencies
+        run: python -m pip install -U pip wheel coverage codecov
+      - name: Install Dependencies
+        run: python -m pip install -Ur requirements.txt pytest pytest-mock
+      - name: Run tests
+        run: coverage run -m pytest tests
+      - name: Upload coverage
+        run: codecov
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index 4979cb9..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-language: python
-sudo: false
-python:
-    - "3.6"
-    - "3.7"
-    - "3.8"
-    - "3.9"
-install:
-    - pip install -U pip wheel coverage codecov
-    - pip install -r requirements.txt pytest pytest-mock
-    - python setup.py develop
-script:
-    - coverage run -m py.test -v tests/ && codecov
-cache:
-    directories:
-        - $HOME/.cache/pip
index 94b5a0b72d16f1705001eec5bd396c544a417ffe..2bcf8152caa71f2eadbae19c6f411032ac9a52ac 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -27,9 +27,11 @@ setup(
         'Intended Audience :: Developers',
         'Intended Audience :: Other Audience',
         'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
-        'Programming Language :: Python :: 3.4',
-        'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
     ],
 
     keywords='hbci banking fints',