forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 15
63 lines (58 loc) · 1.54 KB
/
tests.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
name: edx-platform tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
services:
mongodb:
image: mongo
ports:
- 27017:27017
strategy:
matrix:
python-version: [3.5]
tox-env:
- pep8
- common
- lms-1
- lms-2
- mte
- legacy-amc-tests
- db-migrations
- studio
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.tox-env }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Install dependencies
# TODO: Remove tox-pip-version once we upgrade to Koa+, or whenever we have addressed pip 20.3 strict issues.
run: |
sudo apt-get update -y
sudo apt-get install -y python-dev libxml2-dev libxmlsec1-dev
pip install tox tox-pip-version
- name: Run tox
run: |
PYTEST_ARGS='--cov=.' tox -e ${{ matrix.tox-env }}
- name: Coveralls
uses: AndreMiras/coveralls-python-action@v20201129
if: ${{ matrix.tox-env != 'pep8' }}
with:
parallel: true
flag-name: Unit Test
coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@v20201129
with:
flag-name: Unit Tests
parallel-finished: true