-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.26 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: ci
on:
push:
branches:
- develop
pull_request:
branches:
- develop
concurrency:
group: ci-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
style: ${{ steps.filter.outputs.style }}
unit-tests: ${{ steps.filter.outputs.unit-tests }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
if: ${{ github.event_name == 'push' }}
with:
fetch-depth: 0
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
id: filter
with:
filters: |
style:
- '.github/**'
- 'gantry/**'
- 'pyproject.toml'
unit-tests:
- '.github/**'
- 'gantry/**'
- 'pyproject.toml'
style:
if: ${{ needs.changes.outputs.style == 'true' }}
needs: changes
uses: ./.github/workflows/style.yml
unit-tests:
if: ${{ needs.changes.outputs.unit-tests == 'true' }}
needs: [changes, style]
uses: ./.github/workflows/unit-tests.yml