Browse code

rm travis, add github actions workflow

Hanno Böck authored on 17/10/2021 10:35:35
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,27 @@
1
+name: run tests
2
+on:
3
+- pull_request
4
+- push
5
+
6
+jobs:
7
+  build:
8
+    runs-on: ubuntu-latest
9
+    strategy:
10
+      matrix:
11
+        python-version: [3.8,3.x,3.11-dev]
12
+    steps:
13
+      - uses: actions/checkout@v2
14
+      - name: Set up Python ${{ matrix.python-version }}
15
+        uses: actions/setup-python@v2
16
+        with:
17
+          python-version: ${{ matrix.python-version }}
18
+      - name: Install dependencies
19
+        run: |
20
+          python -m pip install --upgrade pip
21
+          #pip install -r requirements.txt
22
+          pip install pycodestyle pyflakes pylint dlint pyupgrade
23
+      - name: Run tests
24
+        env:
25
+          RUN_ONLINETESTS: 1
26
+        run: |
27
+          python3 -m unittest
0 28
deleted file mode 100644
... ...
@@ -1,14 +0,0 @@
1
-language: python
2
-python:
3
-  - "3.7"
4
-  - "3.8"
5
-  - "3.9-dev"
6
-# Fails due to https://github.com/pypa/wheel/issues/354
7
-#  - "nightly"
8
-env:
9
-  global:
10
-    - RUN_ONLINETESTS=1
11
-install:
12
-  - pip install pycodestyle pyflakes pylint dlint pyupgrade
13
-script:
14
-  - python3 -m unittest