Skip to content

Commit

Permalink
Merge pull request #561 from UW-GAC/feature/optional-pip-compile-in-ci
Browse files Browse the repository at this point in the history
Add optional step to recompile pip tools in CI
  • Loading branch information
amstilp authored May 14, 2024
2 parents ff02479 + 1b4668f commit 4b6eb3c
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ jobs:
mariadb-version: ["10.4"]
include:
# Note that we can't use python 3.12 until we figure out how to have separate requirements files.
- python-version: 3.8 # Possible future version.
- python-version: 3.11 # Possible future version.
backend: "mariadb"
mariadb-version: "10.5"
- python-version: 3.8 # Possible future version.
pip-recompile: true
- python-version: 3.11 # Possible future version.
backend: "mariadb"
mariadb-version: "10.11"
pip-recompile: true

name: "py${{ matrix.python-version }}-${{ matrix.backend }}-${{ matrix.mariadb-version }}"

Expand Down Expand Up @@ -68,10 +70,26 @@ jobs:
requirements/requirements.txt
requirements/test-requirements.txt
- name: Install Dependencies
- name: Ensure pip is installed
run: |
python -m ensurepip --upgrade
python -m pip install --upgrade pip
pip install pip-tools
# Upgrade setup tools
python -m pip install --upgrade setuptools
- name: Install piptools
run: python -m pip install pip-tools

- name: Recompile pip files if requested
if: matrix.pip-recompile
run: |
pip-compile requirements/requirements.in
pip-compile requirements/test-requirements.in
# Print out changes.
git diff
- name: Install Dependencies
run: |
pip-sync requirements/requirements.txt requirements/test-requirements.txt
- name: Collect staticfiles
Expand Down

0 comments on commit 4b6eb3c

Please sign in to comment.