Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make pylint output more easily accessible in CI/CD #138

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading