-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 2.01 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
pull_request:
push:
branches:
- master
- main
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: nau/redwood.master
pip_constraint:
steps:
- name: Checkout PayGate
uses: actions/checkout@v4
with:
# Relative path to place the repository
path: ecommerce-plugin-paygate
- name: Checkout ecommerce
uses: actions/checkout@v4
with:
# Repository name with owner
repository: ${{ matrix.ecommerce_repository }}
# Change the branch to checkout
ref: ${{ matrix.ecommerce_ref }}
# Relative path to place the repository
path: ecommerce
- name: Use Python
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
- name: Install paygate
run: pip install -e ecommerce-plugin-paygate
- name: Run unit tests
run: ECOMMERCE_SOURCE_PATH=../ecommerce make -C ecommerce-plugin-paygate test
- name: Run lint
run: ECOMMERCE_SOURCE_PATH=../ecommerce make -C ecommerce-plugin-paygate lint