]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: move lint task to gh actions
authorRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Sun, 28 Feb 2021 18:26:27 +0000 (19:26 +0100)
committerRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Mon, 1 Mar 2021 10:53:38 +0000 (11:53 +0100)
.github/workflows/lint.yml [new file with mode: 0644]
.travis.yml

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644 (file)
index 0000000..d70c80a
--- /dev/null
@@ -0,0 +1,23 @@
+name: Lint
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  lint:
+    runs-on: ubuntu-20.04
+
+    steps:
+    - uses: actions/checkout@v2
+    - uses: actions/setup-python@v2
+    - name: install tox
+      run: pip install tox
+    - name: run black
+      run: tox -e black .
+    - name: run flake8
+      run: tox -e flake8 .
+    - name: run mypy
+      run: tox -e mypy .
index cec76dbbf57903231d02ef8ba325f0bf044aa552..6721b301bd574b9c663d92c10bcaee905ecdc3b9 100644 (file)
@@ -9,21 +9,6 @@ env:
 matrix:
   include:
 
-    - env:
-        - TOXENV=black
-        - TOXDIR=.
-      python: 3.8
-
-    - env:
-        - TOXENV=flake8
-        - TOXDIR=.
-      python: 3.8
-
-    - env:
-        - TOXENV=mypy
-        - TOXDIR=.
-      python: 3.8
-
     - python: 3.6
       addons:
         postgresql: '10'