diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 558e64c..723cb08 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 diff --git a/Makefile b/Makefile index 12a882f..cef8645 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/requirements_dev.txt b/requirements_dev.txt index fec4fcf..bb51eb7 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -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