-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.33 KB
/
build_and_test.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
57
name: Build and Run Tests
on:
push: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: xu-cheng/texlive-action@v2
with:
scheme: full # Consider changing to 'basic' or 'medium' if possible
run: |
apk add make
apk add g++
apk add zip
make script zip
- uses: actions/upload-artifact@v4
with:
name: PDF_Test
path: vorkurs.pdf
check-links:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download compiled PDF
uses: actions/download-artifact@v4
with:
name: PDF_Test
path: .
- name: Install pdfgrep
run: sudo apt-get update && sudo apt-get install -y pdfgrep
- name: Install required python package
run: pip install urllib3
- name: Run Link Checker
run: python .github/workflows/test_scripts/check_links.py
check-compilability:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run compilability checker
run: python .github/workflows/test_scripts/check_compilability.py