From f677941f0b64dee677c4579725a911bebf27af72 Mon Sep 17 00:00:00 2001 From: ckunki Date: Thu, 23 May 2024 09:58:25 +0200 Subject: [PATCH] May 23rd workflow experiment 5 --- .github/workflows/ci.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35f445a..c16fc4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,8 @@ on: workflow_call: inputs: slow-tests: - type: string + required: false + default: 'false' secrets: ALTERNATIVE_GITHUB_TOKEN: required: false @@ -18,7 +19,7 @@ jobs: steps: - name: Set pytest markers id: pytest-markers - if: ${{ ! inputs.slow-tests }} + if: ${{ inputs.slow-tests == 'false' }} run: echo slow-tests='-m "not slow"' >> "$GITHUB_OUTPUT" - name: Examine Inputs @@ -29,20 +30,20 @@ jobs: env: PYTEST_ADDOPTS: '-o log_cli=true -o log_cli_level=INFO ${{ steps.pytest-markers.outputs.slow-tests }}' -# - name: SCM Checkout -# uses: actions/checkout@v4 -# with: -# fetch-depth: 0 -# -# - name: Setup Development Environment -# uses: ./.github/actions/pytest-plugins-environment -# -# - name: Run Tests of All Plugins -# run: | -# echo "PYTEST_ADDOPTS = $PYTEST_ADDOPTS" -# just test -# env: -# SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }} -# SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }} -# SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }} -# PYTEST_ADDOPTS: '-o log_cli=true -o log_cli_level=INFO ${{ steps.pytest-markers.outputs.slow-tests }}' + - name: SCM Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Development Environment + uses: ./.github/actions/pytest-plugins-environment + + - name: Run Tests of All Plugins + run: | + echo "PYTEST_ADDOPTS = $PYTEST_ADDOPTS" + just test + env: + SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }} + SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }} + SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }} + PYTEST_ADDOPTS: '-o log_cli=true -o log_cli_level=INFO ${{ steps.pytest-markers.outputs.slow-tests }}'