-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (38 loc) · 1003 Bytes
/
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
name: Run tests
on:
push:
branches: [ main ]
repository_dispatch:
types: [ update ]
workflow_dispatch:
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
test_tutorial_scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install requirements
run: |
cd new-website
cd utils
pip install -r requirements.txt
sudo apt-get install -y poppler-utils
sudo apt-get install -y wkhtmltopdf
- name: Test tutorial fetching and export
run: |
cd new-website
cd utils/tutorials
python3 test_fetch_tutorials.py
- name: test tutorials util functions
run: |
cd new-website
cd utils/tutorials
python3 test_utils.py
- name: Test tutorials build pdf book functions
run: |
cd new-website
cd utils/tutorials
python3 test_build_pdf_book.py