Skip to content

Commit 6aa969a

Browse files
authored
Change the CI from Travis to GitHub Actions (#56)
Now that we run a bunch of GitHub actions, it's probably better to be consistent and also run the unit tests as a GitHub Action.
1 parent 6735291 commit 6aa969a

File tree

2 files changed

+38
-19
lines changed

2 files changed

+38
-19
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Unit tests
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
javascript-test:
11+
name: JavaScript Tests
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v2
18+
19+
- name: Install JavaScript dependencies
20+
run: yarn install
21+
22+
- name: Run JavaScript tests
23+
run: yarn test
24+
25+
python-test:
26+
name: Python Tests
27+
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- name: Check out code
32+
uses: actions/checkout@v2
33+
34+
- name: Install Python dependencies
35+
run: python3 -m pip install pytest
36+
37+
- name: Run Python tests
38+
run: python3 -m pytest

.travis.yml

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

0 commit comments

Comments
 (0)