Skip to content

Commit

Permalink
ENH: show diff of update constraint file (#24)
Browse files Browse the repository at this point in the history
* ENH: colorize `uv pip install` output
* ENH: print diff with previous commit
  • Loading branch information
redeboer authored Mar 12, 2024
1 parent 8988b44 commit ca39b3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ runs:
- if: env.SETUP_FILE == 'pyproject.toml'
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install --system update-pip-constraints@git+https://github.com/ComPWA/update-pip-constraints@v1
uv pip install --color=always --system update-pip-constraints@git+https://github.com/ComPWA/update-pip-constraints@v1
shell: bash

- run: update-pip-constraints --color
shell: bash

- name: Show git diff
run: git diff --color --unified=0
shell: bash

- uses: actions/upload-artifact@v4
with:
name: pip-constraints-${{ inputs.python-version }}
Expand Down

0 comments on commit ca39b3f

Please sign in to comment.