diff --git a/.github/workflows/build-and-test-container.yml b/.github/workflows/build-and-test-container.yml index b21da160..152f6413 100644 --- a/.github/workflows/build-and-test-container.yml +++ b/.github/workflows/build-and-test-container.yml @@ -148,6 +148,7 @@ jobs: uses: actions/checkout@v3 - name: Initialize conda and activate environment + shell: bash # Ensure the shell is bash id: activate-conda run: | source /opt/conda/etc/profile.d/conda.sh @@ -156,19 +157,23 @@ jobs: echo "PYTHONPATH=$(conda env list | grep 'myenv' | awk '{print $NF}')/lib/python3.8/site-packages:$PYTHONPATH" >> $GITHUB_ENV - name: Install pylint, pytest, and nbqa + shell: bash run: | pip install pylint pytest nbqa echo "/github/home/.local/bin" >> $GITHUB_PATH # Add the local bin path to the GitHub path - name: Pylint Test kso_utils + shell: bash run: | pylint --disable=possibly-used-before-assignment,used-before-assignment,no-member,assignment-from-no-return kso_utils - name: Pylint Test tests if: success() || failure() + shell: bash run: | pylint --disable=no-member,assignment-from-no-return test/* - name: Pylint Test NB notebooks if: success() || failure() + shell: bash run: | nbqa pylint --disable=unexpected-keyword-arg,no-member,assignment-from-no-return,no-value-for-parameter notebooks # If one of the pylint steps fails, there are errors and we do not need to run the test below.