Skip to content

Commit

Permalink
Add test step for building the documentation (#228)
Browse files Browse the repository at this point in the history
* Add test step for building the documentation

* Add dummy commit to break tests

* Revert docs to working state

* Make docs a separate GHA

Co-authored-by: Oliver Crawford <oliver.crawford@skyscanner.net>
  • Loading branch information
ocrawford555 and Oliver Crawford committed May 31, 2022
1 parent 2154f25 commit f9dae5c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test Docs

on: push

jobs:
build:
runs-on: ubuntu-latest

name: Test Docs

steps:
- uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9

- run: make install-docs

- run: make test-docs
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# IDEs
.idea/
.vscode/

Expand All @@ -7,6 +8,7 @@
# Virtualenv
venv

# Other
.DS_Store
.project
.pydevproject
Expand Down Expand Up @@ -44,10 +46,6 @@ MANIFEST
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
Expand All @@ -74,3 +72,6 @@ venv.bak/

# Snyk Code
.dccache

# MkDocs local builds
site/
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ coverage:

test: lint unit

test-docs:
mkdocs build --strict

freeze:
CUSTOM_COMPILE_COMMAND="make freeze" pip-compile --no-emit-index-url --no-annotate --output-file requirements.txt setup.py

Expand Down

0 comments on commit f9dae5c

Please sign in to comment.