-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (45 loc) · 1.13 KB
/
coverage.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
# Check documentation coverage
name: dbt Docs Coverage
on:
push:
branches:
- main
pull_request:
env:
DBT_PROFILES_DIR: ./.github/
CLICKHOUSE_DB: "xapi"
CLICKHOUSE_USER: "ch_admin"
CLICKHOUSE_PASSWORD: "ch_password"
TUTOR_ROOT: ./.ci/
jobs:
build:
name: Build docs and check coverage
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8.x"
- name: Install dependencies
run: |
pip install tutor-contrib-aspects
pip install -r requirements.txt
dbt deps
- name: Initialize Open edX
continue-on-error: true
run: |
tutor plugins enable aspects
tutor config save
tutor local start -d
tutor local do init -l aspects
tutor local do load-xapi-test-data
- name: Check docs coverage
run: |
dbt run
dbt docs generate
dbt-coverage compute doc --cov-fail-under 1.0