about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-01-15 20:59:30 +0100
committertoonn <toonn@toonn.io>2020-07-05 15:23:42 +0200
commitcbc8177825b11843c11c353df0fa03b016a331fc (patch)
tree3200b274422bc871277f644150fc3c43e0180f30
parentaff694730d3df63778923e3f59cc77ff58c9235a (diff)
downloadranger-cbc8177825b11843c11c353df0fa03b016a331fc.tar.gz
Prepare for Pylint transition from versions <2
-rw-r--r--.github/workflows/doctest.yml4
-rw-r--r--.github/workflows/py37.yml30
-rw-r--r--.github/workflows/python.yml4
-rw-r--r--.travis.yml17
-rw-r--r--requirements.txt2
5 files changed, 17 insertions, 40 deletions
diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index f12cb926..904ed376 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -1,4 +1,4 @@
-name: Python doctest and pytest
+name: Python doctest and manpage-completion
 
 on:
   push:
@@ -12,7 +12,7 @@ jobs:
     strategy:
       max-parallel: 4
       matrix:
-        python-version: [2.7, 3.5, 3.6]
+        python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
     steps:
     - uses: actions/checkout@v1
       with:
diff --git a/.github/workflows/py37.yml b/.github/workflows/py37.yml
deleted file mode 100644
index ca8210a2..00000000
--- a/.github/workflows/py37.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-name: Python 3.7 lints and tests
-
-on:
-  push:
-    paths:
-      - '.github/workflows/py37.yml'
-      - '*.py'
-
-jobs:
-  test_py:
-    runs-on: ubuntu-latest
-    strategy:
-      max-parallel: 4
-      matrix:
-        python-version: [3.7]
-    steps:
-    - uses: actions/checkout@v1
-      with:
-        fetch-depth: 1
-    - 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 --upgrade pip
-        pip install -r <(sed 's/<2//' requirements.txt)
-    - name: Lint and test with pylint, flake8, doctest, pytest
-      run: |
-        make test_py
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 1daba84c..073b78a6 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -12,7 +12,7 @@ jobs:
     strategy:
       max-parallel: 4
       matrix:
-        python-version: [2.7, 3.5, 3.6]
+        python-version: [3.5, 3.6, 3.7, 3.8]
     steps:
     - uses: actions/checkout@v1
       with:
@@ -25,6 +25,6 @@ jobs:
       run: |
         python -m pip install --upgrade pip
         pip install -r requirements.txt
-    - name: Lint and test with pylint, flake8, -d-o-c-t-e-s-t-, -p-y-t-e-s-t-
+    - name: Lint and test with pylint, flake8, -d-o-c-t-e-s-t-, -m-a-n-c-o-m-p-l-e-t-e-
       run: |
         make test_pylint test_flake8 test_pytest
diff --git a/.travis.yml b/.travis.yml
index 7a156b2b..ce55f33e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,20 @@
 dist: 'xenial'
 
 language: 'python'
-python:
-  - '2.7'
-  - '3.5'
-  - '3.6'
+jobs:
+  include:
+    - name: "Python 2.7 no linting"
+      python: '2.7'
+      env: PY2='TRUE'
+    - name: "Python 3"
+      python:
+        - '3.5'
+        - '3.6'
+        - '3.7'
+        - '3.8'
 
 install:
   - 'pip install -r requirements.txt'
 
 script:
-  - 'make test'
+  - 'if [ -z "${PY2}" ]; then make test; else make test_doctest test_pytest test_other; fi'
diff --git a/requirements.txt b/requirements.txt
index 411a2a97..fc51e82a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
 flake8
-pylint<2
+pylint
 pytest