From 98bea3c194ac5cf969413c04d6f61b3989f62bba Mon Sep 17 00:00:00 2001 From: ViStefan <1586641+ViStefan@users.noreply.github.com> Date: Tue, 26 Nov 2024 04:30:32 +0300 Subject: [PATCH] Github action booleans magic --- .github/workflows/integration_test_workflow.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration_test_workflow.yml b/.github/workflows/integration_test_workflow.yml index f3b5fc30..5a2db62a 100644 --- a/.github/workflows/integration_test_workflow.yml +++ b/.github/workflows/integration_test_workflow.yml @@ -54,23 +54,23 @@ jobs: run: poetry run pip install -r requirements-extra.txt - name: Install minimal dependencies - if: inputs.minimal-only == 'true' + if: ${{ inputs.minimal-only }} run: poetry install --no-interaction - name: Install dependencies - if: inputs.minimal-only == 'false' + if: ${{ !inputs.minimal-only }} run: poetry install --no-interaction --all-extras - name: Run minimal integration tests env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} TIKTOKEN_CACHE_DIR: tests/itest_cache/tiktoken_cache - if: inputs.minimal-only == 'true' + if: ${{ inputs.minimal-only }} run: poetry run python tests/run_integration_tests.py --minimal-only --os ${{ runner.os }} - name: Run integration tests env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} TIKTOKEN_CACHE_DIR: tests/itest_cache/tiktoken_cache - if: inputs.minimal-only == 'false' + if: ${{ inputs.minimal-only }} run: poetry run python tests/run_integration_tests.py --os ${{ runner.os }}