Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: build agains multiple Ecommerce #22

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,21 @@ jobs:
ci:
name: Run tests and linting
runs-on: ubuntu-latest


strategy:
matrix:
include:
- ecommerce_repository: fccn/ecommerce
ecommerce_ref: nau/nutmeg.master
# 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.
pip_constraint: pip<24.1
# - ecommerce_repository: openedx/ecommerce
# ecommerce_ref: open-release/redwood.master
# pip_constraint:

steps:
- name: Checkout PayGate
uses: actions/checkout@v4
Expand All @@ -23,18 +37,22 @@ 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

- name: Use Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pip' # caching pip dependencies


- name: Install specific pip version
if: "${{ matrix.pip_constraint != '' }}"
run: pip install "${{ matrix.pip_constraint }}"

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

Expand Down