Skip to content

Commit

Permalink
fix: update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cakeinsauce committed Mar 30, 2023
1 parent 8931e0c commit beaf9cf
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/annotation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
poetry install --no-root
poetry add ../lib/filter_lib
poetry add ../lib/tenants
poetry add ../lib/badgerdoc_cli
poetry run alembic upgrade head
poetry run pytest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
poetry install --no-root --no-interaction
poetry add ../lib/filter_lib
poetry add ../lib/tenants
poetry add ../lib/badgerdoc_cli
- name: Test with pytest
run: |
cd assets
Expand Down
37 changes: 26 additions & 11 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Documentation build and push
on:
push:
branches:
- "**"
jobs:
annotation:
runs-on: ubuntu-latest
Expand All @@ -22,9 +26,10 @@ jobs:
poetry install --no-root --without dev
poetry add --editable ../lib/filter_lib
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./annotation
run: poetry run annotation openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -54,9 +59,10 @@ jobs:
poetry install --no-root --without dev
poetry add --editable ../lib/filter_lib
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./assets
run: poetry run assets openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -84,9 +90,10 @@ jobs:
pip install poetry
poetry install --no-root --without dev
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./convert
run: poetry run convert openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -115,9 +122,10 @@ jobs:
poetry install --no-root --without dev
poetry add --editable ../lib/filter_lib
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./jobs
run: poetry run jobs openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -146,9 +154,10 @@ jobs:
poetry install --no-root --without dev
poetry add --editable ../lib/filter_lib
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./models
run: poetry run models openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -177,9 +186,10 @@ jobs:
poetry install --no-root --without dev
poetry add --editable ../lib/filter_lib
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./pipelines
run: poetry run pipelines openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -207,9 +217,10 @@ jobs:
pip install poetry
poetry install --no-root --without dev
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./processing
run: poetry run processing openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -237,9 +248,10 @@ jobs:
pip install poetry
poetry install --no-root --without dev
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./scheduler
run: poetry run scheduler openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -268,9 +280,10 @@ jobs:
poetry install --no-root --without dev
poetry add --editable ../lib/filter_lib
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./search
run: poetry run search openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -299,9 +312,10 @@ jobs:
poetry install --no-root --without dev
poetry add --editable ../lib/filter_lib
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./taxonomy
run: poetry run taxonomy openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down Expand Up @@ -329,9 +343,10 @@ jobs:
pip install poetry
poetry install --no-root --without dev
poetry add --editable ../lib/tenants
poetry add --editable ../lib/badgerdoc_cli
- name: Generate documentation
working-directory: ./users
run: poetry run users openapi .$SPEC_PATH
run: poetry run badgerdoc openapi .$SPEC_PATH
env:
PYTHONPATH: .
- name: Save documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/badgerdoc_cli/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fastapi==0.68.0
fastapi>=0.68.0

0 comments on commit beaf9cf

Please sign in to comment.