From c904f151271ef089ed709bbd3c6c46b97a479925 Mon Sep 17 00:00:00 2001 From: gromdimon Date: Tue, 24 Sep 2024 12:47:02 +0200 Subject: [PATCH] Add special ci dump --- .github/workflows/main-ci.yml | 4 ++-- Makefile | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index a0d8d9c..2940fb5 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -49,11 +49,11 @@ jobs: make deps - name: Dump OpenAPI Schema - run: make dump-openapi + run: make ci-dump-openapi - name: Check for OpenAPI schema changes run: | - diff openapi.yaml /tmp/openapi.yaml + diff openapi.yaml tmp/openapi.yaml shell: bash -euo pipefail {0} Unit-Test: diff --git a/Makefile b/Makefile index 4279213..73fefdd 100644 --- a/Makefile +++ b/Makefile @@ -132,3 +132,6 @@ jupyterlab: dump-openapi: pipenv run python -c 'from src.utils import dump_openapi_yaml; dump_openapi_yaml("openapi.yaml")' +.PHONY: ci-dump-openapi +ci-dump-openapi: + pipenv run python -c 'from src.utils import dump_openapi_yaml; dump_openapi_yaml("tmp/openapi.yaml")'