-
Notifications
You must be signed in to change notification settings - Fork 268
56 lines (51 loc) · 1.55 KB
/
pull-request.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
50
51
52
53
54
55
56
# Contact the folks in #dev-ci for this one, it looks like it
# is a partial copy of the CI checks from ClickHouse/ClickHouse
---
name: PullRequestCI
env:
# Force the stdout and stderr streams to be unbuffered
PYTHONUNBUFFERED: 1
on: # yamllint disable-line rule:truthy
pull_request:
types:
- synchronize
- reopened
- opened
branches-ignore:
- 'new-nav'
# Cancel the previous wf run in PRs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
DocsCheck:
runs-on: [self-hosted, func-tester-aarch64]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/docs_check
REPO_COPY=${{runner.temp}}/docs_check/ClickHouse
EOF
- name: Clear repository
run: |
sudo rm -rf "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
sudo rm -rf "$TEMP_PATH" && mkdir -p "$TEMP_PATH"
- name: Check out repository code
uses: actions/checkout@v4
with:
repository: "ClickHouse/ClickHouse"
path: "ClickHouse"
ref: "master"
- name: Docs Check
run: |
cp -r "$GITHUB_WORKSPACE/ClickHouse" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci"
python3 docs_check.py --force --docs-branch "$GITHUB_REF"
python3 finish_check.py
- name: Cleanup
if: always()
run: |
docker kill "$(docker ps -q)" ||:
docker rm -f "$(docker ps -a -q)" ||:
sudo rm -fr "$TEMP_PATH"