-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (31 loc) · 1007 Bytes
/
pull_request.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
name: PR CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get install -y build-essential python-dev-is-python3 python3-numpy python3-pytest
- name: Build library
run: make PYTHON=python
- name: Run library tests
run: make test PYTHON=python
- name: Copy library to docs/ directory
run: cp -r permanent/ docs/permanent/
- name: Build documentation
uses: ammaraskar/sphinx-action@master
with:
build-command: "make html"
docs-folder: "docs/"
- name: Fix documentation permissions
run: |
chmod -c -R +rX "docs/build/html/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/build/html/