Skip to content

Commit

Permalink
chore(actions): test docs in every PR (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoalramos authored and aquemy committed Feb 28, 2023
1 parent 6f5e054 commit d9372dd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- docs/**
- mkdocs.yml
- pyproject.toml
branches:
- main
release:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,31 @@ jobs:
- name: Coverage Tests
run: |
make test-cov
validate-docs:
name: Validate Docs
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Cache pip dependencies
id: cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
make install-doc
- name: Build docs
run: |
mkdocs build

0 comments on commit d9372dd

Please sign in to comment.