Makes workflows run only when needed (#1028)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-09 11:23:34 -03:00 committed by GitHub
commit 6511522536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 1 deletions

View file

@ -4,10 +4,18 @@ on:
push:
branches:
- dev
paths:
- "tests/**"
- "src/backend/**"
- "pyproject.toml"
pull_request:
branches:
- dev
- main
paths:
- "tests/**"
- "src/backend/**"
- "pyproject.toml"
jobs:
build-and-test:

View file

@ -3,7 +3,16 @@ name: lint
on:
push:
branches: [main]
paths:
- "tests/**"
- "src/backend/**"
- "pyproject.toml"
pull_request:
paths:
- "tests/**"
- "src/backend/**"
- "pyproject.toml"
env:
POETRY_VERSION: "1.4.0"

View file

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