Skip to content

Commit 3017527

Browse files
committed
Closes #20715: Move OpenAPI schema check from pre-commit to CI
1 parent 1fc849e commit 3017527

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ jobs:
102102
- name: Validate Static Asset Integrity
103103
run: scripts/verify-bundles.sh
104104

105+
- name: Check for changes to OpenAPI schema
106+
run: scripts/verify-openapi.sh
107+
105108
- name: Run tests
106109
run: coverage run --source="netbox/" netbox/manage.py test netbox/ --parallel
107110

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ repos:
2121
language: system
2222
pass_filenames: false
2323
types: [python]
24-
- id: openapi-check
25-
name: "Validate OpenAPI schema"
26-
description: "Check for any unexpected changes to the OpenAPI schema"
27-
files: api/.*\.py$
28-
entry: scripts/verify-openapi.sh
29-
language: system
30-
pass_filenames: false
31-
types: [python]
3224
- id: mkdocs-build
3325
name: "Build documentation"
3426
description: "Build the documentation with mkdocs"

0 commit comments

Comments
 (0)