From ddf670bf899bfc9b8ac3a42f7681aebef2f08570 Mon Sep 17 00:00:00 2001 From: Ben Hagen Date: Sun, 21 Mar 2021 19:09:12 +0100 Subject: [PATCH] Update python-package.yml --- .github/workflows/python-package.yml | 24 +++++++++--------------- Pipfile | 2 +- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3ffd40a..0c684b8 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - name: Python package on: @@ -15,7 +12,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + #python-version: [3.7, 3.8, 3.9] + python-version: [3.9] steps: - uses: actions/checkout@v2 @@ -26,14 +24,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest + python -m pip install pipenv pytest + pipenv install --dev + - name: Black Check + uses: jpetrucciani/black-check@20.8b1 +# - name: Test with pytest +# run: | +# pytest diff --git a/Pipfile b/Pipfile index 45428de..562aca3 100644 --- a/Pipfile +++ b/Pipfile @@ -11,7 +11,7 @@ colorama = "*" pyinstaller = "*" [requires] -python_version = "3.7" +python_version = "3.9" [scripts] build = "pyinstaller pycine/cli/pfs_meta.py --onefile"