Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenepix38 committed Nov 27, 2023
1 parent 6decc8a commit 17c42e0
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,34 @@ permissions:
contents: write

jobs:
api-schema:
name: API schema
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: "x64"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pip-tools
pip-compile ./requirements/development.txt --output-file ./full-requirements.txt --resolver=backtracking
pip install -r ./full-requirements.txt
- name: Lint with ruff
run: python tests/test_app/manage.py spectacular --file docs/schema.yml

deploy:
needs: api-schema
name: Deploy documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,5 +54,4 @@ jobs:
- run: |
pip install -r requirements/development.txt
- run: |
python tests/test_app/manage.py spectacular --file docs/schema.yml
mkdocs gh-deploy --force

0 comments on commit 17c42e0

Please sign in to comment.