Skip to content

Commit

Permalink
fix(workflow): pipx usage for flake8, pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
danila-schelkov committed Apr 16, 2023
1 parent 34bc5f5 commit 11f1714
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install requirements
run: |
pip install pipx
pipx install cookiecutter
pipx runpip cookiecutter install -r requirements.txt
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Linting code by flake8
run: |
pipx run flake8 --show-source --statistics
- name: Check types by pyright
run: |
pipx run pyright
- name: Install requirements
run: |
pip install flake8 pyright
pip install -r requirements.txt
- name: Linting code by flake8
run: |
flake8 --show-source --statistics
- name: Check types by pyright
run: |
pyright

0 comments on commit 11f1714

Please sign in to comment.