Test and upload example's result #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |