news for day 2 #2768
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: Check sphinx warnings | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
check-warnings: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
# https://github.com/actions/setup-python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install deps | |
run: | | |
pip install sphinx sphinx_rtd_theme | |
pip install -r requirements.txt | |
- name: Build project | |
run: | | |
make clean html SPHINXOPTS="-w warnings.txt" | |
- name: Cat warnings | |
run: | | |
cat warnings.txt | |
- name: Check warnings | |
run: | | |
python _meta/check-warnings.py --fail warnings.txt |