diff --git a/.github/workflows/backend_integration_tests.yml b/.github/workflows/backend_integration_tests.yml index 8537b85670..a52fd3fffa 100644 --- a/.github/workflows/backend_integration_tests.yml +++ b/.github/workflows/backend_integration_tests.yml @@ -2,8 +2,13 @@ name: Backend - Integration tests on: push: - branches: [main] - pull_request: {} + branches: + - main + paths: + - src/backend/** + pull_request: + paths: + - src/backend/** jobs: pytest: diff --git a/.github/workflows/backend_lint.yml b/.github/workflows/backend_lint.yml index dc7638d458..5b1853642a 100644 --- a/.github/workflows/backend_lint.yml +++ b/.github/workflows/backend_lint.yml @@ -2,8 +2,13 @@ name: Backend - Lint on: push: - branches: [main] - pull_request: {} + branches: + - main + paths: + - src/backend/** + pull_request: + paths: + - src/backend/** jobs: lint: @@ -15,7 +20,7 @@ jobs: fetch-depth: 0 clean: true - name: Run lint checks - uses: chartboost/ruff-action@v1 + uses: astral-sh/ruff-action@v3 with: src: './src/' version: 0.6.0 diff --git a/.github/workflows/backend_typecheck.yml b/.github/workflows/backend_typecheck.yml index a583c63a3d..ff44a29b23 100644 --- a/.github/workflows/backend_typecheck.yml +++ b/.github/workflows/backend_typecheck.yml @@ -2,8 +2,13 @@ name: Backend - Typecheck new files on: push: - branches: [main] - pull_request: {} + branches: + - main + paths: + - src/backend/** + pull_request: + paths: + - src/backend/** jobs: check: @@ -28,4 +33,4 @@ jobs: uses: jakebailey/pyright-action@v2 with: version: 1.1.311 - extra-args: ${{ steps.get_new_files.outputs.new_py_files }} \ No newline at end of file + extra-args: ${{ steps.get_new_files.outputs.new_py_files }} diff --git a/.github/workflows/backend_unit_tests.yml b/.github/workflows/backend_unit_tests.yml index d44f747f5c..a052d3449d 100644 --- a/.github/workflows/backend_unit_tests.yml +++ b/.github/workflows/backend_unit_tests.yml @@ -2,8 +2,13 @@ name: Backend - Unit tests on: push: - branches: [main] - pull_request: {} + branches: + - main + paths: + - src/backend/** + pull_request: + paths: + - src/backend/** jobs: pytest: