Skip to content

Commit

Permalink
conda init in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jitu5 committed Mar 23, 2024
1 parent c712362 commit ced2b91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/actions/win_setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ced2b91

Please sign in to comment.