-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.32 KB
/
build_pages.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: Build Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-html:
runs-on: ubuntu-latest
steps:
# Checkout this repo
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
package:
- 'pysembench/**'
tests:
- 'tests/**'
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build Pages
if: ${{steps.filter.outputs.package == 'true' }}
run: |
make init-dev
make docs
- name: Coverage Badge
uses: JotaFan/[email protected]
if: ${{(steps.filter.outputs.package == 'true') || (steps.filter.outputs.tests == 'true')}}
with:
cov-omit-list: pysembench/core.py, tests/*, *__init__*, *__version__*, *__main__*, *exceptions*
cov-threshold-single: 80
cov-threshold-total: 80
async-tests: false
output: docs/build/html/coverage.svg
- name: Deploy Pages
if: ${{steps.filter.outputs.package == 'true' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html