Skip to content

Commit b3f9723

Browse files
authored
Merge pull request #312 from mitodl/remove_travis
Remove Travis CI
2 parents 5ce94ad + 0ee9f7d commit b3f9723

File tree

2 files changed

+78
-55
lines changed

2 files changed

+78
-55
lines changed

.github/workflows/ci.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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

.travis.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)