From beaf9cfde7b325487161feee1ddf7451551be997 Mon Sep 17 00:00:00 2001 From: Denis Rybakov Date: Thu, 30 Mar 2023 21:10:03 +0300 Subject: [PATCH] fix: update gh actions --- .github/workflows/annotation.yml | 1 + .github/workflows/assets.yml | 1 + .github/workflows/documentation.yml | 37 ++++++++++++++++++++--------- lib/badgerdoc_cli/requirements.txt | 2 +- 4 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/annotation.yml b/.github/workflows/annotation.yml index 42395a351..6b842a048 100644 --- a/.github/workflows/annotation.yml +++ b/.github/workflows/annotation.yml @@ -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: diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index a855cc1ba..2664d92d9 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -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 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index c325d52d8..ae6709a49 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,4 +1,8 @@ name: Documentation build and push +on: + push: + branches: + - "**" jobs: annotation: runs-on: ubuntu-latest @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/lib/badgerdoc_cli/requirements.txt b/lib/badgerdoc_cli/requirements.txt index 4e7c77fc4..3f1f56daa 100644 --- a/lib/badgerdoc_cli/requirements.txt +++ b/lib/badgerdoc_cli/requirements.txt @@ -1 +1 @@ -fastapi==0.68.0 +fastapi>=0.68.0