-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.22 KB
/
test_workflow.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
name: Run all tests on git push and PR's.
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
python-tests:
name: Run Back End Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9.20'
- name: Install dependencies
run: |
pip uninstall numpy qutip
pip install -r requirements.txt
- name: Run Tests
run: |
python -c "import sys; print(sys.path)"
PYTHONPATH=$PYTHONPATH:${{ github.workspace }} python3 backend/test_evolution.py
env:
PYTHONPATH: ${{ github.workspace }}
javascript-tests:
name: Run Front End Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run Jest Tests
run: |
npx jest "frontend-interface/components/__tests__/NoiseModel.test.js"
npx jest "frontend-interface/components/__tests__/DragAndDropGrid.test.js"