Browse Source

test against python3.9

https://github.com/fphammerle/switchbot-mqtt/commit/b2747c3a3a5251285732694945fa836ee3552600
https://github.com/fphammerle/ical2vdir/commit/d679a828a6de976c477ddfa7f3ced0b1be57fc3c
Fabian Peter Hammerle 3 years ago
parent
commit
76b63a06e8
2 changed files with 7 additions and 2 deletions
  1. 6 2
      .github/workflows/python.yml
  2. 1 0
      setup.py

+ 6 - 2
.github/workflows/python.yml

@@ -44,6 +44,7 @@ jobs:
         - 3.6
         - 3.7
         - 3.8
+        - 3.9
       fail-fast: false
     steps:
     - uses: actions/checkout@v1
@@ -60,9 +61,12 @@ jobs:
         PYTHON_VERSION: ${{ matrix.python-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
-    - run: pipenv run pylint tests/*
+    - run: python3 -c 'import sys; sys.exit(sys.version_info < (3, 9))'
+        || pipenv run pylint tests/*
     - run: pipenv run mypy "$(cat *.egg-info/top_level.txt)" tests
     # >=1.9.0 to detect branch name
     # https://github.com/coveralls-clients/coveralls-python/pull/207

+ 1 - 0
setup.py

@@ -59,6 +59,7 @@ setuptools.setup(
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
         "Topic :: Home Automation",
     ],
     entry_points={