Updates to choosing servos page #1139
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: CI | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Python Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Install LaTeX | |
run: | | |
sudo apt update | |
sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk texlive-lang-greek texlive-luatex texlive-xetex texlive-fonts-extra dvipng librsvg2-bin graphviz | |
- name: Build HTML | |
run: | | |
make html | |
- name: Archive HTML | |
uses: actions/upload-artifact@v2 | |
with: | |
name: gm0-html | |
path: build/html/ | |
- name: Build PDF | |
run: | | |
make latexpdf | |
- name: Archive PDF | |
uses: actions/upload-artifact@v2 | |
with: | |
name: gm0-pdf | |
path: build/latex/GameManual0.pdf | |
check-links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Check Links (Diff) | |
run: | | |
git fetch origin main | |
make linkcheckdiff | |
- name: Archive Linkcheck Failure | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: linkcheck-output.txt | |
path: build/linkcheck/output.txt | |
check-linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Check Lint | |
run: | | |
make lint | |
check-spelling: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: misspell | |
uses: reviewdog/action-misspell@v1 | |
with: | |
locale: "US" | |
reporter: "github-check" | |
check-redirects: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout main | |
run: | | |
git fetch origin main --depth=1 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Check redirects | |
run: | | |
make rediraffecheckdiff |