File tree Expand file tree Collapse file tree 2 files changed +78
-55
lines changed
Expand file tree Collapse file tree 2 files changed +78
-55
lines changed Original file line number Diff line number Diff line change 1+ name : Unit Tests
2+ on : [push]
3+ jobs :
4+ Python-3-Tests :
5+ runs-on : ubuntu-latest
6+ strategy :
7+ matrix :
8+ python-version : [3.5, 3.6, 3.7]
9+ steps :
10+ - name : Check out repository code
11+ uses : actions/checkout@v2
12+
13+ - name : Set up Python ${{ matrix.python-version }}
14+ uses : actions/setup-python@v2
15+ with :
16+ python-version : ${{ matrix.python-version }}
17+
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install -r requirements3.txt
22+ pip install codecov
23+
24+ - name : Run test cases
25+ run : pytest --cov=mitxgraders --cov-report=term-missing
26+
27+ - name : Run coverage
28+ run : codecov
29+
30+ Python-2-Tests :
31+ runs-on : ubuntu-latest
32+ strategy :
33+ matrix :
34+ python-version : [2.7]
35+ steps :
36+ - name : Check out repository code
37+ uses : actions/checkout@v2
38+
39+ - name : Set up Python ${{ matrix.python-version }}
40+ uses : actions/setup-python@v2
41+ with :
42+ python-version : ${{ matrix.python-version }}
43+
44+ - name : Install dependencies
45+ run : |
46+ python -m pip install --upgrade pip
47+ pip install -r requirements.txt
48+ pip install codecov
49+
50+ - name : Run test cases
51+ run : pytest --cov=mitxgraders --cov-report=term-missing
52+
53+ - name : Run coverage
54+ run : codecov
55+
56+ NodeJS-Tests :
57+ runs-on : ubuntu-latest
58+ strategy :
59+ matrix :
60+ node-version : [16]
61+ steps :
62+ - name : Check out repository code
63+ uses : actions/checkout@v2
64+
65+ - name : Set up Node.js ${{ matrix.node-version }}
66+ uses : actions/setup-node@v2
67+ with :
68+ node-version : ${{ matrix.node-version }}
69+
70+ - name : Install dependencies
71+ run : |
72+ cd mitxgraders-js
73+ npm install
74+
75+ - name : Run test cases
76+ run : |
77+ cd mitxgraders-js
78+ npm test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments