Update dependency pydantic to v2.6.1 #117
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
name: Test API server | |
on: [push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: [self-hosted, linux, large] | |
defaults: | |
run: | |
working-directory: server | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- uses: Gr1N/setup-poetry@12c727a3dcf8c1a548d8d041c9d5ef5cebb3ba2e | |
with: | |
poetry-version: "1.6.1" | |
- run: poetry install | |
- run: poetry run black --check hwapi | |
- run: poetry run ruff hwapi | |
- run: poetry run mypy hwapi | |
compare-openapi: | |
runs-on: [self-hosted, linux, large] | |
defaults: | |
run: | |
working-directory: server | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- uses: Gr1N/setup-poetry@12c727a3dcf8c1a548d8d041c9d5ef5cebb3ba2e | |
with: | |
poetry-version: "1.6.1" | |
- run: poetry install | |
- name: Start FastAPI application | |
run: poetry run uvicorn hwapi.main:app --port 8001 & | |
shell: bash | |
- name: Fetch OpenAPI YAML | |
run: curl http://localhost:8001/v1/openapi.yaml -o fetched_openapi.yaml | |
- name: Compare with repository's openapi.yaml | |
run: diff fetched_openapi.yaml schemas/openapi.yaml |