From dfb396250ed25e2193a54e3e315962db62b77ff9 Mon Sep 17 00:00:00 2001 From: j3rrryy Date: Sat, 23 Nov 2024 03:42:56 +0300 Subject: [PATCH] feat: ruff linting pipeline --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..68a6a3d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: CI/CD + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4.2.2 + + - name: Run Ruff linting and formatting + uses: astral-sh/ruff-action@v1.1.1 + with: + args: "check --fix && ruff format ." + changed-files: "true" + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5.0.1 + with: + commit_message: "ruff: fix and apply formatting"