From 216d7a819ca845563b493b7a0ffdb9003727f6ce Mon Sep 17 00:00:00 2001 From: doronz Date: Wed, 12 Jul 2023 09:04:36 +0300 Subject: [PATCH] python-app: update workflow --- .github/workflows/python-app.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 5b6aaf7..c3318e8 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,23 +19,25 @@ jobs: python-version: [3.8, 3.9, "3.10", 3.11] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 + pip install flake8 isort pip install -r requirements.txt - 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 + flake8 . --max-complexity=10 --max-line-length=127 + - name: Verify sorted imports + run: | + isort . -m HANGING_INDENT -l 120 --check-only - name: Test installation + run: | python3 -m pip install . - name: Test usage + run: | python3 -m pyipsw