зеркало из https://github.com/microsoft/torchgeo.git
Don't run actions twice on PRs
See https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
This commit is contained in:
Родитель
1814a8d20d
Коммит
0722acdba4
|
@ -1,11 +1,15 @@
|
|||
name: black
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.py'
|
||||
- 'pyproject.toml'
|
||||
- '.github/workflows/black.yaml'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.py'
|
||||
- 'pyproject.toml'
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
name: flake8
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.py'
|
||||
- '.flake8'
|
||||
- '.github/workflows/flake8.yaml'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.py'
|
||||
- '.flake8'
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
name: mypy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.py'
|
||||
- 'mypy.ini'
|
||||
- 'requirements.txt'
|
||||
- '.github/workflows/mypy.yaml'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.py'
|
||||
- 'mypy.ini'
|
||||
|
|
Загрузка…
Ссылка в новой задаче