Skip to content

Commit a906ce0

Browse files
committed
check openapi spec in CI
1 parent 589664c commit a906ce0

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ jobs:
3535
pip install setuptools
3636
fi
3737
python setup.py develop
38-
python -m pip install flake8 pytest-cov coverage vcrpy black
38+
python -m pip install flake8 pytest-cov coverage vcrpy black openapi-spec-validator
3939
tools/install_pandas.sh
40+
- name: Validate OpenAPI spec
41+
continue-on-error: true
42+
run: |
43+
openapi-spec-validator openapi/openapi.yaml
4044
- name: black
4145
run: |
4246
black --check tiingo

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ format: ## apply opinionated formatting
5656
format-check: ## check formatting for CI
5757
black --check tiingo/
5858

59+
validate-openapi: ## validate OpenAPI specification
60+
openapi-spec-validator openapi/openapi.yaml
61+
5962
test: ## run tests quickly with the default Python
6063
py.test
6164

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ pytest==8.3.4
1212
vcrpy==2.1.1
1313
twine==6.0.1
1414
black==24.10.0
15+
openapi-spec-validator==0.7.1

0 commit comments

Comments
 (0)