Skip to content

Commit

Permalink
Install pytest and activate conda environment from within the test sc…
Browse files Browse the repository at this point in the history
…ript.
  • Loading branch information
sandeepd-nv committed Aug 15, 2024
1 parent 6133839 commit a017fa6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,4 @@ runs:
- name: Run test / analysis
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
. "${{ env.REPO_DIR }}/continuous_integration/scripts/conda-utils"
activate_conda_env
"${{ env.REPO_DIR }}/continuous_integration/scripts/entrypoint" "${{ env.REPO_DIR }}/continuous_integration/scripts/test" ${{ inputs.test-options }}
2 changes: 2 additions & 0 deletions continuous_integration/scripts/make-conda-env
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ make_test_env() {

activate_conda_env

conda install pytest

pip install "${ARTIFACTS_DIR}"/*.whl

}
Expand Down
2 changes: 2 additions & 0 deletions continuous_integration/scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ run_test_or_analysis() {

. conda-utils;

activate_conda_env;

conda_info;

set -xeuo pipefail
Expand Down

0 comments on commit a017fa6

Please sign in to comment.