Repository navigation
73 lines (69 loc) · 2.59 KB
/
Copy pathagent-context.yml
File metadata and controls
73 lines (69 loc) · 2.59 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
name: DataHub Agent Context
on:
push:
branches:
- master
- releases/**
paths:
- ".github/workflows/agent-context.yml"
- "datahub-agent-context**"
- "metadata-ingestion/**"
- "metadata-models/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/agent-context.yml"
- "datahub-agent-context**"
- "metadata-ingestion/**"
- "metadata-models/**"
release:
types: [published]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
build-datahub-agent-context:
# Depot for internal runs (remote Gradle build cache via DEPOT_CACHE_TOKEN);
# fork PRs stay GitHub-hosted. Non-PR events have no pull_request, so the
# fork check is false there.
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && !github.event.pull_request.head.repo.fork && 'depot-ubuntu-24.04' || 'ubuntu-24.04' }}
timeout-minutes: 60
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up toolchain
uses: ./.github/actions/setup-toolchain
- name: Test packages are correct
run: |
cd datahub-agent-context;
python -c 'import setuptools; where="./src"; assert setuptools.find_packages(where) == setuptools.find_namespace_packages(where), "you seem to be missing or have extra __init__.py files"'
- name: Gradle build (and test)
run: |
./gradlew :datahub-agent-context:build
- name: Report test results
if: (!cancelled())
uses: ./.github/actions/report-test-results
with:
artifact-name: datahub-agent-context-test-results
test-results-paths: "datahub-agent-context/test-results/**"
junit-file-globs: "datahub-agent-context/test-results/*.xml"
- name: Upload datahub-agent-context coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
files: ./build/coverage-reports/datahub-agent-context/
#handle_no_reports_found: true
fail_ci_if_error: false
name: datahub-agent-context
verbose: true
override_branch: ${{ github.head_ref || github.ref_name }}
event-file:
runs-on: ubuntu-24.04
steps:
- name: Upload
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: Event File
path: ${{ github.event_path }}