Skip to content

Commit

Permalink
Print all installed packages in the pytest CI
Browse files Browse the repository at this point in the history
This makes it much easier to compare package versions between runs to
see if an update is causing any failures, rather than having to trawl
through the install logs.
  • Loading branch information
yut23 committed May 16, 2024
1 parent 6b3fbe1 commit f64fd1f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pytest-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ jobs:

- name: Print system info
run: |
echo '::group::NumPy'
pip install threadpoolctl &>/dev/null
python -c "import sys, numpy; print(numpy.__version__); print(sys.version); print(numpy.show_runtime())"
echo
echo '::endgroup::'
echo '::group::CPU info'
lscpu
echo '::endgroup::'
echo '::group::Package versions'
pip list --format=freeze
echo '::endgroup::'
- name: Run tests with pytest
run: pytest -v -s --nbval --cov=pynucastro --color=yes
Expand Down

0 comments on commit f64fd1f

Please sign in to comment.