-
Notifications
You must be signed in to change notification settings - Fork 39
86 lines (74 loc) · 2.21 KB
/
coverage.yml
File metadata and controls
86 lines (74 loc) · 2.21 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
84
85
86
name: Code coverage
on:
pull_request:
paths-ignore:
- documentation/**
push:
branches:
- main
paths-ignore:
- documentation/**
env:
pg_version: 18
# Avoid failures on slow recovery
PGCTLTIMEOUT: 120
PG_TEST_TIMEOUT_DEFAULT: 300
jobs:
collect:
name: Collect and upload
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Clone repository
uses: actions/checkout@v6
with:
path: src
submodules: recursive
- name: Clone postgres repository
uses: actions/checkout@v6
with:
path: postgres
repository: percona/postgres.git
ref: PSP_REL_${{ env.pg_version }}_STABLE
# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v6
with:
python-version: 3.11
- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh
- name: Build postgres
run: src/ci_scripts/build-and-install-psp.sh coverage
- name: Build pg_tde
run: src/ci_scripts/build.sh coverage
- name: Setup kmip and vault
run: src/ci_scripts/setup-keyring-servers.sh
- name: Run pg_tde tests
run: src/ci_scripts/test.sh
- name: Process coverage
run: |
geninfo -o coverage.info --rc lcov_branch_coverage=1 -i .
geninfo -o coverage.info --rc lcov_branch_coverage=1 .
working-directory: build
- name: Upload coverage data to codecov.io
uses: codecov/codecov-action@v5
with:
verbose: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
files: ../build/coverage.info
working-directory: src
- name: Report on test fail
uses: actions/upload-artifact@v7
if: ${{ failure() }}
with:
name: coverage-testlog
path: |
build/meson-logs/testlog.txt
build/regress_install
build/regress_install.log
build/regression.diffs
build/results
build/testrun
retention-days: 3