diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89b0508..138c521 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,12 +2,7 @@ name: "CI" permissions: "read-all" -on: - push: - branches: - - "main" - pull_request: - workflow_dispatch: +on: [push, pull_request, workflow_dispatch] defaults: run: @@ -17,6 +12,15 @@ env: FORCE_COLOR: "1" jobs: + ruff: + name: "Lint" + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + - uses: "chartboost/ruff-action@v1" + with: + src: "./src" + test: strategy: fail-fast: false diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e07b89c..7ab6b9d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,6 +1,9 @@ name: "Codecov" -on: [push] +on: + push: + branches: + - "main" jobs: coverage: diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml deleted file mode 100644 index d8b40d8..0000000 --- a/.github/workflows/ruff.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Ruff -on: [push, pull_request] -jobs: - ruff: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: chartboost/ruff-action@v1 - with: - src: './src' \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4fdad6e..0fb8566 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ fail_fast: true repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.2 + rev: v0.3.3 hooks: - id: ruff files: src