-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (58 loc) · 1.57 KB
/
ci_fuzz_linux.yml
File metadata and controls
71 lines (58 loc) · 1.57 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
name: "HTML2PDF4Doc Fuzz Testing on Linux"
on:
pull_request:
branches: [ "**" ]
schedule:
- cron: "00 00 * * *"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120 # 2 hours
strategy:
matrix:
python-version: [
"3.12"
]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install Python packages
run: |
pip install -r requirements.development.txt
- name: Clone html2pdf4doc.js
run: |
invoke bootstrap
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install html2pdf4doc dependencies.
run: |
python developer/pip_install_html2pdf4doc_deps.py
- name: Run Lint tasks
run: |
invoke lint
- name: Build HTML2PDF4Doc.js
run: |
invoke build
- name: Run tests
run: |
if [ "${{ github.event_name }}" = "schedule" ]; then
echo "🕒 Running long fuzzing..."
invoke test-fuzz --total-mutations 25
else
echo "🚀 Running short fuzzing..."
invoke test-fuzz
fi
- name: Upload broken PDFs as artifact
# Always upload, even if job fails.
if: failure() || always()
uses: actions/upload-artifact@v7
with:
name: tests_fuzz_broken_pdfs
path: build/tests_fuzz
retention-days: 30