Skip to content

Commit

Permalink
python-app: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jul 12, 2023
1 parent 86a1893 commit 216d7a8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 216d7a8

Please sign in to comment.