Skip to content

Commit

Permalink
tools: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
systemallica committed May 5, 2024
1 parent 92f73a0 commit 0ea6e3a
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,21 @@ name: Python application

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
uses: dschep/[email protected]
with:
# Use the preview version of Poetry
preview: false
- name: Install dependencies
run: |
poetry install
python3 -m pip install --upgrade pip
pip install flake8
- 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: Lint with ruff
uses: chartboost/ruff-action@v1
with:
args: "check ./morfist"

- name: Format with ruff
uses: chartboost/ruff-action@v1
with:
args: "format ./morfist --check "

0 comments on commit 0ea6e3a

Please sign in to comment.