Skip to content

Commit

Permalink
ci: fix schema diff with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
tigarmo committed Dec 20, 2024
1 parent a763691 commit c9d9c5f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

jobs:
diff-schema:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout rockcraft
Expand All @@ -20,7 +20,10 @@ jobs:
python-version: "3.10"

- name: Install requirements
run: pip install -r requirements.txt
run: |
uv export --no-emit-workspace --no-dev --extra apt-noble \
--output-file requirements.txt
pip install -r requirements.txt
- name: Run generator script
run: ./tools/schema/schema.py > generated_schema.json
Expand Down Expand Up @@ -49,4 +52,6 @@ jobs:

- name: Run ajv
run: |
ajv validate -s $ROCKCRAFT_JSON -d docs/reference/code/example/rockcraft.yaml --strict=false --spec=draft2020
ajv validate -s $ROCKCRAFT_JSON \
-d docs/reference/code/example/rockcraft.yaml \
--strict=false --spec=draft2020

0 comments on commit c9d9c5f

Please sign in to comment.