-
-
Notifications
You must be signed in to change notification settings - Fork 713
53 lines (44 loc) · 1.38 KB
/
doctest.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
name: Doctest build
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
paths-ignore:
- 'locale/**'
pull_request:
paths-ignore:
- 'locale/**'
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
doctest:
runs-on: ubuntu-latest
name: Doctest
services:
image: docker
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 1
- name: Set up Python 3.9
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libxml2 libxslt1-dev python3-lxml
python -m pip install --upgrade pip
- name: Build test code
run: |
make -f docker.mk doctest
- name: Upload build artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: Doctest build
path: ./build/doctest/output.txt