Jinja2: update to v3.1.4 #315
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: Generate API documentation | |
on: | |
push: | |
branches: | |
- development | |
paths-ignore: | |
- 'file_formats/**' | |
- 'licenses/**' | |
- 'schemas/**' | |
- 'templates/**' | |
- 'terms/**' | |
- 'tests/**' | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install openapi-spec-validator | |
python -m pip install -r requirements.txt | |
- name: Create directory for API documentation | |
run: | | |
mkdir build | |
ln -s . rules_uu | |
- name: Generate Yoda core API documentation | |
run: | | |
export PYTHONPATH="${PYTHONPATH}:." | |
python tools/api/generate-openapi.py rules_uu --core > build/api_core.json | |
- name: Validate Yoda core API documentation | |
run: | | |
openapi-spec-validator build/api_core.json | |
- name: Generate Yoda module API documentation | |
run: | | |
export PYTHONPATH="${PYTHONPATH}:." | |
python tools/api/generate-openapi.py rules_uu --module datarequest > build/api_datarequest.json | |
python tools/api/generate-openapi.py rules_uu --module deposit > build/api_deposit.json | |
- name: Validate Yoda module API documentation | |
run: | | |
openapi-spec-validator build/api_datarequest.json | |
openapi-spec-validator build/api_deposit.json | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: build/ |