From ced2b912b2c64c6a4712dbcb3ae11d11e97cff3a Mon Sep 17 00:00:00 2001 From: Jitendra Gundaniya Date: Sat, 23 Mar 2024 13:49:08 +0000 Subject: [PATCH] conda init in workflow --- .github/actions/win_setup/action.yml | 5 +---- .github/workflows/build_backend.yml | 6 ++++++ .github/workflows/daily.yml | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/actions/win_setup/action.yml b/.github/actions/win_setup/action.yml index b78cddf05e..398e7754e1 100644 --- a/.github/actions/win_setup/action.yml +++ b/.github/actions/win_setup/action.yml @@ -11,10 +11,7 @@ runs: uses: conda-incubator/setup-miniconda@v2 with: auto-update-conda: true - python-version: ${{ inputs.python_version }} - - name: Explicitly initialize conda - run: conda init bash - shell: bash + python-version: ${{ inputs.python_version }} # - name: Install and initialize Miniconda # run: |- # choco install miniconda3 -y diff --git a/.github/workflows/build_backend.yml b/.github/workflows/build_backend.yml index c41ff38e32..c0d5963040 100644 --- a/.github/workflows/build_backend.yml +++ b/.github/workflows/build_backend.yml @@ -50,6 +50,9 @@ jobs: - uses: "./.github/actions/win_setup" with: python_version: "${{ matrix.python_version }}" + - name: Explicitly initialize conda + run: conda init bash + shell: bash - name: Run all end to end tests on Windows run: | conda activate kedro-viz @@ -86,6 +89,9 @@ jobs: - uses: "./.github/actions/win_setup" with: python_version: "${{ matrix.python_version }}" + - name: Explicitly initialize conda + run: conda init bash + shell: bash - name: Run Python tests on Windows run: | conda activate kedro-viz diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index a1ba80ef7e..caf93bdbcc 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -49,6 +49,9 @@ jobs: - uses: "./.github/actions/win_setup" with: python_version: "${{ matrix.python_version }}" + - name: Explicitly initialize conda + run: conda init bash + shell: bash - name: Run all end to end tests on Windows run: conda activate kedro-viz; make e2e-tests unit_tests: @@ -79,6 +82,9 @@ jobs: - uses: "./.github/actions/win_setup" with: python_version: "${{ matrix.python_version }}" + - name: Explicitly initialize conda + run: conda init bash + shell: bash - name: Run Python tests on Windows run: conda activate kedro-viz; make pytest lint: