Fix absolute paths in requirements files with latest version of pip and pip-compile #290
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update pip-tools requirements files | |
on: | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
update-requirements-files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code Repository | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Temporarily pin pip-compile version | |
# The latest version of pip and pip-tools creates absolute paths instead of relative paths | |
# when compiling requirements files. | |
run: | | |
pip install --upgrade pip==24.3 | |
- name: Update requirements files | |
uses: UW-GAC/pip-tools-actions/[email protected] | |
with: | |
requirements_files: |- | |
requirements/requirements.in | |
requirements/test-requirements.in | |
requirements/dev-requirements.in | |
pr-title: Update requirements file for ${{ github.head_ref }} | |
pr-branch-suffix: "${{ github.event.number}}" |