-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (73 loc) · 2.48 KB
/
Copy pathdev-pr.yml
File metadata and controls
83 lines (73 loc) · 2.48 KB
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
80
81
82
83
# Copyright 2026 The MathWorks, Inc.
name: Dev PR
on:
pull_request:
branches: ['main']
permissions:
contents: read
pull-requests: read
packages: write
concurrency:
group: pr-${{ github.event.pull_request.number }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
changes:
if: ${{ github.event.repository.private }}
runs-on: ubuntu-latest
outputs:
mwhelpers: ${{ steps.filter.outputs.mwhelpers }}
docker_matlab: ${{ steps.filter.outputs.docker_matlab }}
docker_runtime: ${{ steps.filter.outputs.docker_runtime }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Detect changed areas
id: filter
uses: dorny/paths-filter@v4
with:
filters: |
mwhelpers:
- 'resources/notebooks/mwhelpers/**'
- 'tests/unit/**'
- 'tests/docker/integration/**'
docker_matlab:
- 'resources/dockerfiles/matlab/**'
- 'tests/docker/matlab/**'
docker_runtime:
- 'resources/dockerfiles/runtime/**'
- 'tests/docker/runtime/**'
lint:
if: ${{ github.event.repository.private }}
uses: ./.github/workflows/run-precommit.yml
unit_tests:
needs: changes
if: ${{ needs.changes.result == 'success' && needs.changes.outputs.mwhelpers == 'true' }}
uses: ./.github/workflows/run-unit-tests.yml
build_matlab_image:
needs: changes
if: ${{ needs.changes.result == 'success' && needs.changes.outputs.docker_matlab == 'true' }}
uses: ./.github/workflows/docker-pipeline.yml
with:
image_type: 'matlab'
matlab_release: 'R2026a'
databricks_runtime: '17.3'
run_integration: true
secrets: inherit
build_runtime_image:
needs: changes
if: ${{ needs.changes.result == 'success' && needs.changes.outputs.docker_runtime == 'true' }}
uses: ./.github/workflows/docker-pipeline.yml
with:
image_type: 'runtime'
matlab_release: 'R2026a'
databricks_runtime: '17.3'
secrets: inherit
integration_with_latest_release:
needs: changes
if: ${{ needs.changes.result == 'success' && needs.changes.outputs.docker_matlab != 'true' && needs.changes.outputs.mwhelpers == 'true' }}
uses: ./.github/workflows/run-integration-tests.yml
with:
docker_image: ${{ format('ghcr.io/{0}/matlab:R2026a-17.3', github.repository) }}
matlab_release: 'R2026a'
databricks_runtime: '17.3'
secrets: inherit