contracts.yml 504 B

1234567891011121314151617181920
  1. name: API contracts
  2. on:
  3. pull_request:
  4. push:
  5. branches: [main]
  6. jobs:
  7. openapi:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v4
  11. - uses: actions/setup-python@v5
  12. with:
  13. python-version: "3.11"
  14. cache: pip
  15. - run: pip install -r requirements.txt pytest
  16. - run: python scripts/generate_openapi.py
  17. - run: git diff --exit-code -- docs/architecture/OPENAPI.yaml
  18. - run: python -m pytest tests/test_architecture_artifacts.py -q