Skip to content

Merge pull request #15 from vliz-be-opsci/feature/new-task-implementa… #16

Merge pull request #15 from vliz-be-opsci/feature/new-task-implementa…

Merge pull request #15 from vliz-be-opsci/feature/new-task-implementa… #16

Workflow file for this run

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