-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (37 loc) · 1.02 KB
/
unit-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
# taken from https://github.com/e-mission/e-mission-server/blob/master/.github/workflows/test-with-manual-install.yml
name: unit-tests
# Controls when the action will run. Triggers the workflow on push or pull request
on:
push:
pull_request:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test-pytest:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run setup.sh
shell: bash -l {0}
run: |
source bin/setup.sh
- name: Run pytest
shell: bash -l {0}
run: |
source bin/run_pytest.sh
test-jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Run setup.sh
shell: bash -l {0}
run: |
source bin/setup.sh
- name: Run jest tests
shell: bash -l {0}
run: |
source bin/run_jest.sh