Fix unit test using deprecated date format #2373
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
# Syntax reference for this file: | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
name: Documentation | |
on: [push, pull_request] | |
# https://gist.github.com/c-bata/ed5e7b7f8015502ee5092a3e77937c99 | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v2 | |
# https://github.com/marketplace/actions/setup-python | |
# ^-- This gives info on matrix testing. | |
- name: Install Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
# I don't know where the "run" thing is documented. | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements-tools.txt | |
- name: Build Sphinx docs | |
working-directory: doc | |
env: | |
SPHINXOPTS: -W --keep-going | |
run: | | |
make html | |
- name: Check general doc coverage | |
run: | | |
docstr-coverage . -e ".env|migrations|instance|doc" -F 73 | |
- name: Check models doc coverage | |
run: | | |
docstr-coverage collectives/models | |
- name: Check utils doc coverage | |
run: | | |
docstr-coverage collectives/utils | |
- name: Check api doc coverage | |
run: | | |
docstr-coverage collectives/api | |
- name: Check routes doc coverage | |
run: | | |
docstr-coverage collectives/routes |