-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (40 loc) · 1.34 KB
/
common_tests_02.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
name: Common 2nd
on: push
jobs:
run-tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ['3.8']
django-version: ["2.2"]
mongodb-version: ['4.0']
test_module: [
"common/lib/"
]
name: ${{ matrix.test_module }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Required System Packages
run: sudo apt-get update && sudo apt-get install libxmlsec1-dev
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install requirements
run: |
pip install --upgrade --force-reinstall -r requirements/pip.txt
pip install --upgrade --force-reinstall -r requirements/edx/testing.txt
pip install --exists-action w -r requirements/edunext/base.txt
pip install "django~=${{ matrix.django-version }}.24"
- name: Run tests
uses: nick-invision/retry@v2
with:
timeout_minutes: 45
max_attempts: 3
retry_on: error
command: pytest ${{ matrix.test_module }}