diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6552e9..82140a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,18 @@ on: - opened jobs: - ci: - # https://github.com/questionpy-org/.github + python: uses: questionpy-org/.github/.github/workflows/python-ci.yml@v10 with: # GitHub workflow inputs do not support lists, so we pass JSON. pytest-python-versions: '["3.12", "3.13"]' packages: questionpy_common questionpy_server tests + + lint-qppe: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: stoplightio/spectral-action@latest + with: + file_glob: 'docs/*.yaml' diff --git a/docs/.spectral.yaml b/.spectral.yaml similarity index 100% rename from docs/.spectral.yaml rename to .spectral.yaml diff --git a/docs/lint.sh b/docs/lint.sh deleted file mode 100755 index e947054..0000000 --- a/docs/lint.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -o errexit - -cd "$(dirname "$0")" -exec npx "@stoplight/spectral-cli@^6.15.0" lint qppe-server.yaml qppe-lms.yaml