Skip to content

V1 : NextJS frontend #71

V1 : NextJS frontend

V1 : NextJS frontend #71

Workflow file for this run

# Codespell configuration is within .codespellrc
name: Codespell and Docs Generation
on:
push:
branches: [main, dev]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Run Codespell
uses: codespell-project/actions-codespell@v2
with:
ignore_words_file: .codespellignore
skip: "*.env,*.git,*.myenv,requirements.txt,package-lock.json,yarn.lock,pnpm-lock.yaml"
build-docs:
name: Generate Sphinx Documentation
runs-on: ubuntu-latest
needs: codespell # Run docs generation only after codespell passes
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Sphinx documentation
run: sphinx-build -b html . docs
- name: Push generated docs to repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update generated Sphinx documentation"
file_pattern: docs/*