mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-28 18:21:00 +00:00
Fix docs code block and separate docs tests
This commit is contained in:
parent
ab1247fd2d
commit
dd21619228
3 changed files with 31 additions and 2 deletions
23
.github/workflows/test-docs.yml
vendored
Normal file
23
.github/workflows/test-docs.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Test Documentation Build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test_docs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10"]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
- name: Install dependencies for docs
|
||||
run: |
|
||||
python -m pip install -r docs/requirements.txt
|
||||
- name: Build documentation
|
||||
run: |
|
||||
cd docs && make clean && make html
|
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -1,6 +1,12 @@
|
|||
name: Test
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
|
@ -101,7 +101,7 @@ You will need to run Stator in order to have background actions work::
|
|||
|
||||
./manage.py runstator
|
||||
|
||||
Make yourself a superuser account in order to log in:
|
||||
Make yourself a superuser account in order to log in::
|
||||
|
||||
./manage.py createsuperuser
|
||||
|
||||
|
|
Loading…
Reference in a new issue