Skip to content

Commit

Permalink
build: build using different ecommerce releases
Browse files Browse the repository at this point in the history
Build this repository against different ecommerce repositories and
releases.
  • Loading branch information
igobranco committed Jul 12, 2024
1 parent 0ae8073 commit 3cfbd15
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ jobs:
ci:
name: Run tests and linting
runs-on: ubuntu-latest


strategy:
matrix:
include:
- ecommerce_repository: fccn/ecommerce
ecommerce_ref: nau/nutmeg.master
pip_constraint: pip<24.1
# - ecommerce_repository: openedx/ecommerce
# ecommerce_ref: nau/redwood.master
# pip_constraint:

steps:
- name: Checkout Ecommerce NAU extensions
uses: actions/checkout@v4
Expand All @@ -23,9 +33,9 @@ jobs:
uses: actions/checkout@v4
with:
# Repository name with owner
repository: fccn/ecommerce
repository: ${{ matrix.ecommerce_repository }}
# Change the branch to checkout
ref: nau/nutmeg.master
ref: ${{ matrix.ecommerce_ref }}
# Relative path to place the repository
path: ecommerce

Expand All @@ -36,11 +46,12 @@ jobs:
cache: 'pip' # caching pip dependencies

- name: Install specific pip version
if: "${{ matrix.pip_constraint != '' }}"
# Requested celery==4.4.7 from https://files.......... (from -r ecommerce/requirements/dev.txt (line 73)) has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
# pytz (>dev)
# ~^
# Please use pip<24.1 if you need to use this version.
run: pip install "pip<24.1"
run: pip install "${{ matrix.pip_constraint }}"

- name: Install ecommerce pip requirements
run: pip install -r ecommerce/requirements/dev.txt
Expand Down

0 comments on commit 3cfbd15

Please sign in to comment.