-
Notifications
You must be signed in to change notification settings - Fork 11
81 lines (71 loc) · 2.37 KB
/
on_pull_request.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: On Pull Request
# On pull_request, we:
# * always build the rocks
# * always run tests
on:
pull_request:
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-22.04
# Required permissions
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
jupyter-pytorch-cuda-full: ${{ steps.filter.outputs.jupyter-pytorch-cuda-full }}
jupyter-pytorch-full: ${{ steps.filter.outputs.jupyter-pytorch-full }}
jupyter-scipy: ${{ steps.filter.outputs.jupyter-scipy }}
jupyter-tensorflow-cuda-full: ${{ steps.filter.outputs.jupyter-tensorflow-cuda-full }}
jupyter-tensorflow-full: ${{ steps.filter.outputs.jupyter-tensorflow-full }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
jupyter-pytorch-cuda-full:
- 'jupyter-pytorch-cuda-full/**'
jupyter-pytorch-full:
- 'jupyter-pytorch-full/**'
jupyter-scipy:
- 'jupyter-scipy/**'
jupyter-tensorflow-cuda-full:
- 'jupyter-tensorflow-cuda-full/**'
jupyter-tensorflow-full:
- 'jupyter-tensorflow-full/**'
test-jupyter-pytorch-cuda-full:
needs: changes
if: ${{ needs.changes.outputs.jupyter-pytorch-cuda-full == 'true' }}
name: Run Tests
uses: ./.github/workflows/integrate.yaml
with:
rock: 'jupyter-pytorch-full'
test-jupyter-pytorch-full:
needs: changes
if: ${{ needs.changes.outputs.jupyter-pytorch-full == 'true' }}
name: Run Tests
uses: ./.github/workflows/integrate.yaml
with:
rock: 'jupyter-pytorch-full'
test-jupyter-scipy:
needs: changes
if: ${{ needs.changes.outputs.jupyter-scipy == 'true' }}
name: Run Tests
uses: ./.github/workflows/integrate.yaml
with:
rock: 'jupyter-scipy'
test-jupyter-tensorflow-cuda-full:
needs: changes
if: ${{ needs.changes.outputs.jupyter-tensorflow-cuda-full == 'true' }}
name: Run Tests
uses: ./.github/workflows/integrate.yaml
with:
rock: 'jupyter-tensorflow-cuda-full'
test-jupyter-tensorflow-full:
needs: changes
if: ${{ needs.changes.outputs.jupyter-tensorflow-full == 'true' }}
name: Run Tests
uses: ./.github/workflows/integrate.yaml
with:
rock: 'jupyter-tensorflow-full'