From 31682609b5a477d026f78136c82da6ea7e7f16e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Tue, 10 Dec 2024 20:20:34 +0100 Subject: [PATCH] quality: Test Bicep static quality --- .github/workflows/pipeline.yaml | 6 ++++++ Makefile | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 4015f9be..4d0ec364 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -112,6 +112,9 @@ jobs: python-version: "3.12" version: "0.5.x" + - name: Set up Azure CLI + run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash + # - name: Login to Azure # uses: Azure/login@v2.2.0 # with: @@ -134,6 +137,9 @@ jobs: - name: Set up dependencies run: make install-deps + - name: Set up local config + run: mv config-remote-example.yaml config.yaml + # - name: Configure environment variables # run: echo "${{ secrets.DOTENV_UNIT_TESTS }}" > .env diff --git a/Makefile b/Makefile index b0b1ef75..db5ae185 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,9 @@ test-static: @echo "➡️ Test Python type hints..." uv run pyright . + @echo "➡️ Test Bicep code style..." + az bicep lint --file cicd/bicep/main.bicep + test-unit: @echo "➡️ Unit tests (Pytest)..." PUBLIC_DOMAIN=dummy uv run pytest \