updates based on suggestions #622
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and serve local docs | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: 3.9 | |
jobs: | |
document: | |
name: Build and serve local docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python runtime | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Python dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build and serve | |
run: | | |
mkdocs build -s | |
mkdocs serve -s & |