Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurie Germishuys committed Oct 1, 2024
1 parent 3a971cc commit 268760b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-test-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 268760b

Please sign in to comment.