Skip to content

Commit 3bf0871

Browse files
committed
Updated CI.
Signed-off-by: Pavel Kirilin <win10@list.ru>
1 parent 025e19a commit 3bf0871

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,23 @@ name: Testing
33
on: push
44

55
jobs:
6+
pre_job:
7+
# continue-on-error: true # Uncomment once integration is finished
8+
runs-on: ubuntu-latest
9+
# Map a step output to a job output
10+
outputs:
11+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
12+
steps:
13+
- id: skip_check
14+
uses: fkirc/skip-duplicate-actions@master
15+
with:
16+
# All of these options are optional, so you can remove them if you are happy with the defaults
17+
concurrent_skipping: 'same_content'
18+
skip_after_successful_duplicate: 'true'
19+
paths_ignore: '["**/README.md"]'
620
lint:
21+
needs: pre_job
22+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
723
strategy:
824
matrix:
925
cmd:
@@ -27,6 +43,8 @@ jobs:
2743
- name: Run lint check
2844
run: poetry run pre-commit run -a ${{ matrix.cmd }}
2945
pytest:
46+
needs: pre_job
47+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
3048
permissions:
3149
checks: write
3250
pull-requests: write

0 commit comments

Comments
 (0)