Skip to content

Commit

Permalink
ci: add dependency tree to step summary of optional-dependencies job
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Dec 5, 2023
1 parent 47bdc2c commit 9a18d05
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,23 @@ jobs:
run: |
sudo apt update
sudo apt install --yes libldap2-dev libsasl2-dev
- run: python -m pip install --upgrade pip setuptools
- run: python -m pip install --upgrade pip pipdeptree setuptools
- run: python -m pip install .[allauth,shibboleth,ci,dev,gunicorn,ldap,mysql,postgres,pytest]
- run: python -m pip freeze
- run: python -m pip list --outdated
- name: Write info to step summary
run: |
{
echo -e "# ✓ All optional dependency groups successfully installed in combination\n\n"
echo '<details><summary>Installed Python packages as dependency tree</summary>'
echo -e "\n\`\`\`console"
echo "$ python -m pipdeptree --local-only --exclude=pip,pipdeptree"
python -m pipdeptree --local-only --exclude=pip,pipdeptree
echo -e "\`\`\`\n</details>"
echo '<details><summary>Outdated dependencies</summary>'
echo -e "\n\`\`\`console"
echo "$ python -m pip list --outdated"
python -m pip list --outdated
echo -e "\`\`\`\n</details>"
} >> $GITHUB_STEP_SUMMARY
required-checks-pass:
if: always()
Expand Down

0 comments on commit 9a18d05

Please sign in to comment.