From c9d9c5f53c0c42b0eaf9c69177fa75648a771f27 Mon Sep 17 00:00:00 2001 From: Tiago Nobrega Date: Fri, 20 Dec 2024 11:11:01 -0300 Subject: [PATCH] ci: fix schema diff with uv --- .github/workflows/schema.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/schema.yaml b/.github/workflows/schema.yaml index 5b8094030..fd381b874 100644 --- a/.github/workflows/schema.yaml +++ b/.github/workflows/schema.yaml @@ -6,7 +6,7 @@ env: jobs: diff-schema: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout rockcraft @@ -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 @@ -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