Skip to content

Commit

Permalink
Merge pull request #138 from NOAA-GFDL/CI.CD.experiment
Browse files Browse the repository at this point in the history
make `pylint` output more easily accessible in CI/CD
  • Loading branch information
ceblanton authored Jul 30, 2024
2 parents f94a102 + 5ff53ce commit 1465431
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/create_test_conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,14 @@ jobs:
python --version
$CONDA/envs/fre-cli/bin/python --version
# run pytest
$CONDA/envs/fre-cli/bin/pytest
pytest --config-file=fre/pytest.ini --cov-config=fre/coveragerc --cov=fre fre/
- name: Run pylint in fre-cli environment
run: |
# try to make sure the right things are in GITHUB_PATH
echo $CONDA/envs/fre-cli/bin >> $GITHUB_PATH
which python
python --version
$CONDA/envs/fre-cli/bin/python --version
# run pytest
pylint fre/ || echo "pylint returned non-zero exit code. preventing workflow from dying with this echo."
1 change: 1 addition & 0 deletions fre/fre.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
)

def fre():
''' entry point function to subgroup functions '''
pass

if __name__ == '__main__':
Expand Down

0 comments on commit 1465431

Please sign in to comment.