-
Notifications
You must be signed in to change notification settings - Fork 1.1k
58 lines (54 loc) · 1.53 KB
/
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
58
name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
container:
image: ghcr.io/tuna/thuthesis-test-env
options: --user 1001
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build documentation and example
run: make all-dev
- name: Upload build results
uses: actions/upload-artifact@v4
with:
name: build-result
path: |
thuthesis.pdf
thuthesis-example.pdf
- name: Build release zip
run: |
version=$(git describe --tags)
echo "Current git revision: $version"
python3 utils/create_release.py --version $version
- name: Build CTAN release zip with l3build
run: l3build ctan --config utils/build-ctan
- name: Upload release zip
uses: actions/upload-artifact@v4
with:
name: thuthesis-snapshot-release
path: |
thuthesis-ctan.zip
dist/thuthesis-*.zip
test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
container:
image: ghcr.io/tuna/thuthesis-test-env
options: --user 1001
steps:
- uses: actions/checkout@v4
- name: Test with l3build
run: make test
- name: Upload test results if failed
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-result
path: |
build/test
build/test-testfiles