-
-
Notifications
You must be signed in to change notification settings - Fork 987
65 lines (56 loc) · 1.73 KB
/
doctest.yml
File metadata and controls
65 lines (56 loc) · 1.73 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
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@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
archive.ubuntu.com:80
auth.docker.io:443
demo.mapserver.org:443
files.pythonhosted.org:443
github.com:443
production.cloudflare.docker.com:443
pypi.org:443
qgis.org:443
raw.githubusercontent.com:443
registry-1.docker.io:443
nbg1.your-objectstorage.com:443
security.ubuntu.com:80
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
- name: Set up Python 3.12
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.12'
- name: Pip upgrade
run: |
python -m pip install --upgrade pip
- name: Build test code
run: |
make -f docker.mk doctest
- name: Upload build artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: Doctest build
path: ./build/doctest/output.txt