-
Notifications
You must be signed in to change notification settings - Fork 26
39 lines (36 loc) · 1004 Bytes
/
nightly-build.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
name: Nightly Build
on:
workflow_dispatch:
schedule:
- cron: "00 00 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout latest tag
run: |
echo checking out $(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Remove necessary directories
run: |
rm -rf PyPDFForm
rm -rf pdf_samples
- name: Re-checkout latest samples
uses: actions/checkout@v4
with:
sparse-checkout: |
pdf_samples
- name: Set up environment
run: |
python -m pip install --upgrade pip
pip install PyPDFForm
pip install -r requirements.txt
ls
- name: Run nightly tests
run: |
pytest