Add linting and testing workflows for backend code (#1478)

* Add paths to trigger workflow on specific file changes

* Add linting workflow for backend code
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-28 09:57:41 -03:00 • committed by GitHub
commit 609744332d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View file

@ -3,7 +3,15 @@ name: lint
on: on:
push: push:
branches: [main] branches: [main]
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
pull_request: pull_request:
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
env: env:
POETRY_VERSION: "1.7.0" POETRY_VERSION: "1.7.0"

View file

@ -3,8 +3,16 @@ name: test
on: on:
push: push:
branches: [main] branches: [main]
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
pull_request: pull_request:
branches: [dev] branches: [dev]
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
env: env:
POETRY_VERSION: "1.5.0" POETRY_VERSION: "1.5.0"