Skip to content

Merge pull request #4 from aguinet/dependabot/npm_and_yarn/webapp/web… #15

Merge pull request #4 from aguinet/dependabot/npm_and_yarn/webapp/web…

Merge pull request #4 from aguinet/dependabot/npm_and_yarn/webapp/web… #15

Workflow file for this run

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] && cd tests && python -m unittest
- name: Webapp tests
run: cd webapp && npm i && npm run eslint && npm run test