Remove unused CI
This commit is contained in:
parent
5be4e89c4e
commit
5c33e9c2a4
2 changed files with 0 additions and 80 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
|
@ -1,30 +0,0 @@
|
||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
- name: Install deps
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install black ruff mypy
|
|
||||||
- name: Lint
|
|
||||||
run: |
|
|
||||||
ruff check .
|
|
||||||
- name: Type check
|
|
||||||
run: |
|
|
||||||
mypy .
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
python -m unittest -q
|
|
||||||
50
.github/workflows/openapi.yml
vendored
50
.github/workflows/openapi.yml
vendored
|
|
@ -1,50 +0,0 @@
|
||||||
name: OpenAPI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main, openapi, '**/openapi' ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
schema:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.10'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
|
|
||||||
- name: Export OpenAPI schema
|
|
||||||
run: |
|
|
||||||
python scripts/export_openapi.py
|
|
||||||
|
|
||||||
- name: Set up Node for schema tools
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: '20'
|
|
||||||
|
|
||||||
- name: Lint schema with Spectral
|
|
||||||
run: npx -y @stoplight/spectral-cli lint openapi.json
|
|
||||||
|
|
||||||
- name: Compare with baseline if present
|
|
||||||
run: |
|
|
||||||
if [ -f openapi-baseline.json ]; then \
|
|
||||||
npx -y openapi-diff --fail-on-changed --fail-on-incompatible openapi-baseline.json openapi.json; \
|
|
||||||
else \
|
|
||||||
echo "No baseline file found. Skipping diff."; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Upload schema artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: openapi-schema
|
|
||||||
path: openapi.json
|
|
||||||
Loading…
Reference in a new issue