-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.05 KB
/
test-build.yaml
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
name: Test and upload example's result
on:
push:
schedule:
- cron: "1 2 3 * *" # @monthly
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: install system deps
run: |
sudo apt update
sudo apt install libreoffice-writer pandoc poppler-utils texlive
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: pip
- run: pip install .
- run: python -m unittest
working-directory: tests
upload-example:
needs: ["tests"]
runs-on: ubuntu-latest
steps:
- name: install system deps
run: |
sudo apt update
sudo apt install libreoffice-writer poppler-utils
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: pip
- run: pip install .
- run: cv pdf --backend=libreoffice < config.toml > cv.pdf
- uses: actions/upload-artifact@v3
with:
name: cv
path: cv.pdf