check openapi spec in CI

This commit is contained in:
Cameron Yick
2025-12-13 23:54:25 -05:00
parent 589664c7bd
commit a906ce01d9
3 changed files with 9 additions and 1 deletions

View File

@@ -35,8 +35,12 @@ jobs:
pip install setuptools
fi
python setup.py develop
python -m pip install flake8 pytest-cov coverage vcrpy black
python -m pip install flake8 pytest-cov coverage vcrpy black openapi-spec-validator
tools/install_pandas.sh
- name: Validate OpenAPI spec
continue-on-error: true
run: |
openapi-spec-validator openapi/openapi.yaml
- name: black
run: |
black --check tiingo

View File

@@ -56,6 +56,9 @@ format: ## apply opinionated formatting
format-check: ## check formatting for CI
black --check tiingo/
validate-openapi: ## validate OpenAPI specification
openapi-spec-validator openapi/openapi.yaml
test: ## run tests quickly with the default Python
py.test

View File

@@ -12,3 +12,4 @@ pytest==8.3.4
vcrpy==2.1.1
twine==6.0.1
black==24.10.0
openapi-spec-validator==0.7.1