mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Python 3.12 has been released in October 2023, it should be tested in the CI. Python 3.7 is not maintained anymore, removing it from the minimum required version in `pyproject.toml` files.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Python Client pydantic v1 (Echo API)
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- samples/client/echo_api/python-pydantic-v1/**
|
|
- .github/workflows/samples-python-pydantic-v1-client-echo-api.yaml
|
|
|
|
jobs:
|
|
build:
|
|
name: Test Python client
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# clients
|
|
- samples/client/echo_api/python-pydantic-v1/
|
|
python-version:
|
|
- "3.8"
|
|
- "3.9"
|
|
- "3.10"
|
|
- "3.11"
|
|
- "3.12"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Setup node.js
|
|
uses: actions/setup-node@v4
|
|
- name: Run echo server
|
|
run: |
|
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
(cd http-echo-server && npm install && npm start &)
|
|
- name: Install
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
pip install -r requirements.txt
|
|
pip install -r test-requirements.txt
|
|
|
|
- name: Test
|
|
working-directory: ${{ matrix.sample }}
|
|
run: python -m pytest
|