File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,23 @@ name: Testing
33on : push
44
55jobs :
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 :
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
You can’t perform that action at this time.
0 commit comments