Browse Source

test against python3.9

https://github.com/fphammerle/freesurfer-volume-reader/commit/0d8c2b5a4b954278bce4806bbe0cb7dc51993bb0
https://github.com/fphammerle/switchbot-mqtt/commit/b2747c3a3a5251285732694945fa836ee3552600
https://github.com/fphammerle/ical2vdir/commit/d679a828a6de976c477ddfa7f3ced0b1be57fc3c
Fabian Peter Hammerle 3 years ago
parent
commit
7b104b43c3
2 changed files with 13 additions and 1 deletions
  1. 12 1
      .github/workflows/python.yml
  2. 1 0
      setup.py

+ 12 - 1
.github/workflows/python.yml

@@ -39,6 +39,7 @@ jobs:
         - 3.6
         - 3.7
         - 3.8
+        - 3.9
         pandas-version:
         - '' # locked version
         - 0.21.*
@@ -74,6 +75,14 @@ jobs:
           pandas-version: 0.23.*
         - python-version: 3.8
           pandas-version: 0.24.*
+        - python-version: 3.9
+          pandas-version: 0.21.*
+        - python-version: 3.9
+          pandas-version: 0.22.*
+        - python-version: 3.9
+          pandas-version: 0.23.*
+        - python-version: 3.9
+          pandas-version: 0.24.*
       fail-fast: false
     steps:
     - uses: actions/checkout@v1
@@ -90,7 +99,9 @@ jobs:
         PANDAS_VERSION: ${{ matrix.pandas-version }}
     - run: pipenv graph
     - run: pipenv run pytest --cov="$(cat *.egg-info/top_level.txt)" --cov-report=term-missing --cov-fail-under=100
-    - run: pipenv run pylint --load-plugins=pylint_import_requirements "$(cat *.egg-info/top_level.txt)"
+    # https://github.com/PyCQA/pylint/issues/3882
+    - run: python3 -c 'import sys; sys.exit(sys.version_info < (3, 9))'
+        || pipenv run pylint --load-plugins=pylint_import_requirements "$(cat *.egg-info/top_level.txt)"
     # https://github.com/PyCQA/pylint/issues/352
     # disable parse-error due to:
     # > tests/resources/__init__.py:1:0: F0010: error while code parsing: Unable to load file tests/resources/__init__.py:

+ 1 - 0
setup.py

@@ -61,6 +61,7 @@ setuptools.setup(
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
         "Topic :: Scientific/Engineering :: Information Analysis",
         "Topic :: Scientific/Engineering :: Medical Science Apps.",
         "Topic :: Utilities",