forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.35 KB
/
detect-changed-modules-and-build-reports.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
name: Detect Changed Modules and Build Reports
on:
push:
jobs:
detect-changed-modules:
name: Detect Changed Modules
timeout-minutes: 5
runs-on: ubuntu-latest
outputs:
changed-modules: ${{ steps.detect-changed-modules.outputs.changed-modules }}
steps:
- name: Checkout Airbyte
uses: actions/checkout@v2
with:
fetch-depth: 1000
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Intall Requirements
run: pip install ./tools/ci_static_check_reports/.
- name: Detect Changed Modules
id: detect-changed-modules
run: |
git fetch
echo "::set-output name=changed-modules::'$(ci_detect_changed_modules $(git diff --name-only $(git merge-base HEAD origin/master)))'"
build-reports:
name: Build Python Static Checkers Reports
needs:
- detect-changed-modules
runs-on: ubuntu-latest
steps:
- name: Checkout Airbyte
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Intall Requirements
run: pip install ./tools/ci_static_check_reports/.
- name: Build Reports
run: ci_build_python_checkers_reports ${{needs.detect-changed-modules.outputs.changed-modules}}