From 092c053824140eab757381c3249e189ae901bf12 Mon Sep 17 00:00:00 2001 From: Sofyan Ajridi <33550874+sofyanajridi@users.noreply.github.com> Date: Wed, 6 Mar 2024 14:36:47 +0100 Subject: [PATCH] Update 04-code-checks.yml --- .github/workflows/04-code-checks.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/04-code-checks.yml b/.github/workflows/04-code-checks.yml index 5bb9152..b983e49 100644 --- a/.github/workflows/04-code-checks.yml +++ b/.github/workflows/04-code-checks.yml @@ -1,11 +1,10 @@ name: Code checks -on: - workflow_dispatch: +on: push jobs: job1: - name: linting + name: linting and formatting runs-on: ubuntu-latest steps: - name: Check out repo @@ -16,9 +15,9 @@ jobs: python-version: '3.8' - name: Install Flake8 run: | - python -m pip install flake8 - - name: Run linting tests + python -m pip install ruff + - name: Run ruff linting test run: | - flake8 src/model/ + ruff check src/model/