forked from loafle/openapi-generator-original
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout 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>
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
name: Python Client (Echo API)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/echo_api/python/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/echo_api/python/**
|
|
jobs:
|
|
build:
|
|
name: Test Python client
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# clients
|
|
- samples/client/echo_api/python
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.7'
|
|
- name: Setup node.js
|
|
uses: actions/setup-node@v3
|
|
- 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
|