Skip to content

Commit 9d156f9

Browse files
changed skip-ci statemant (#209)
skip-ci теперь нужен в описании или названии пр тогда гитхаб должен пропустить тесты Тажке был исправлен синтаксис
1 parent 48f2057 commit 9d156f9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/checks.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ name: DAG tests
33
on:
44
pull_request:
55

6-
76
jobs:
87
test-dags:
98
name: Run DAG tests
10-
if: '!contains(github.event.head_commit.message, skip-ci)'
11-
9+
if: ${{ !contains(github.event.pull_request.title, 'skip-ci') && !contains(github.event.pull_request.body, 'skip-ci') }}
1210
runs-on: ubuntu-latest
1311

1412
steps:
@@ -27,23 +25,23 @@ jobs:
2725
pip install --upgrade -r requirements.txt
2826
2927
- name: Get changed files
30-
# id нужен для обращения к результату
3128
id: changed-files
3229
uses: tj-actions/changed-files@v35
3330
with:
3431
separator: " "
3532

36-
# запуск тестов
3733
- name: Run tests
3834
run: |
3935
CHANGED_FILES="${{ steps.changed-files.outputs.all_changed_files }}" python -m pytest tests/.
4036
4137
linting:
4238
name: Linting checks
39+
if: ${{ !contains(github.event.pull_request.title, 'skip-ci') && !contains(github.event.pull_request.body, 'skip-ci') }}
4340
runs-on: ubuntu-latest
41+
4442
steps:
4543
- uses: actions/checkout@v4
46-
- uses: actions/setup-python@v2
44+
- uses: actions/setup-python@v4
4745
with:
4846
python-version: '3.11'
4947
- uses: isort/isort-action@master

0 commit comments

Comments
 (0)