Skip to content

Commit

Permalink
Add lint check action
Browse files Browse the repository at this point in the history
  • Loading branch information
sudohainguyen committed May 7, 2024
1 parent a0afa84 commit c631231
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ concurrency:
cancel-in-progress: true

jobs:
lint-check:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd python
./scripts/install-deps.sh
- name: Lint with flake8
run: |
cd python
ruff format --check .
ruff check .
unit-test:
runs-on: ubuntu-22.04
strategy:
Expand Down

0 comments on commit c631231

Please sign in to comment.