From aa4a93fa5d184f5ff90c2810dceadd8cc846d561 Mon Sep 17 00:00:00 2001 From: Matti Eiden Date: Wed, 8 Jan 2025 09:54:54 +0200 Subject: [PATCH] ci: add commitlint and ruff to GH test action refs: RATYK-43 --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06eb771..29e8d1f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,3 +45,20 @@ jobs: - name: Upload Coverage to Codecov if: ${{ matrix.python_version == env.DEFAULT_PYTHON }} uses: codecov/codecov-action@v4 + + commitlint: + name: Commitlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check commitlint + uses: wagoid/commitlint-github-action@0d749a1a91d4770e983a7b8f83d4a3f0e7e0874e # v5.4.4 + + ruff: + name: Coding style - ruff + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/ruff-action@v3 + - run: ruff check --fix + - run: ruff format