Skip to content

add allOf inline schema support #296

add allOf inline schema support

add allOf inline schema support #296

Workflow file for this run

name: Tests and Checks
on: push
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Linting
run: |
pip install pre-commit
pre-commit run --all-files
test:
name: test
needs: lint
strategy:
fail-fast: true
matrix:
python-version: [ "3.10", "3.11" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install poetry
poetry install
- name: Run pytest
run: |
docker-compose up -d --build mock_server && poetry run pytest .
coverage:
name: coverage
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run pytest
run: |
docker-compose up -d --build mock_server && poetry run pytest --cov=pythogen --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml