Files
pydantic/.github/workflows/docs-preview.yml
T
Samuel Colvin 908257914c docs preview and coverage using smokeshow (#2580)
* docs preview using smokeshow

* switch to using smokeshow for coverage

* fix macos and windows builds

* correct coverage prep.

* tweak coverage build logic

* print more coverage info

* mess with coverage setup, set config [PATHS]

* updating badges

* add context to coverage reports

* adding smokeshow status context
2021-03-27 18:36:52 +00:00

30 lines
645 B
YAML

name: Docs Preview
on: [pull_request]
jobs:
site-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: install
run: make install-docs
- run: pip install smokeshow
- name: build site
run: make docs
- run: smokeshow upload site
env:
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Docs Preview
SMOKESHOW_GITHUB_CONTEXT: docs
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}