-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 985 Bytes
/
testing.yml
File metadata and controls
45 lines (35 loc) · 985 Bytes
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
name: testing
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev, main ]
workflow_dispatch:
jobs:
backend-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.10.2
- name: Install dependencies
run: cd backend && pip3 install -r requirements.txt
- name: Run tests
env:
ATLAS_URL: ${{ secrets.ATLAS_URL }}
ENV: ${{ secrets.ENV }}
run: cd backend && export ATLAS_URL=$ATLAS_URL && export ENV=$ENV && python runtests.py
frontend-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: cd frontend && npm i
- name: Run tests
run: cd frontend && npm test