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
parent 6b2d0c6ef1
commit 609744332d
2 changed files with 16 additions and 0 deletions

View File

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

View File

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