forked from loafle/openapi-generator-original
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
843 B
YAML
34 lines
843 B
YAML
name: Python FastAPI Server
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/server/petstore/python-fastapi/**
|
|
pull_request:
|
|
paths:
|
|
- samples/server/petstore/python-fastapi/**
|
|
jobs:
|
|
build:
|
|
name: Test Python FastAPI server
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# servers
|
|
- samples/server/petstore/python-fastapi/
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.9'
|
|
- name: Install dependencies
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
pip install pytest
|
|
- name: Test
|
|
working-directory: ${{ matrix.sample }}
|
|
run: PYTHONPATH=src pytest
|