forked from aguinet/secsend
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 822 Bytes
/
Copy pathtests.yml
File metadata and controls
33 lines (30 loc) · 822 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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
cache-dependency-path: webapp/package-lock.json
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
api/setup.py
cli/setup.py
- name: CLI tests
run: cd cli && pip install -e .[dev] && cd tests && python -m unittest
- name: API tests
run: cd api && pip install -e .[dev] && pytest tests
- name: Webapp tests
run: cd webapp && npm i && npm run eslint && npm run test