Get processing timeline events #5060
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unit-tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
# Backend tests (Python/Flask) | |
Python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
python-version: ['3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install pipenv | |
pipenv install -d | |
pipenv run pip install -r test_requirements.txt | |
- name: Check pytest installation | |
run: pipenv run pip show pytest | |
- name: Run unit tests | |
run: | | |
pipenv run python3 run_tests.py | |
# Frontend tests (VueJS) | |
VueJS: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: timesketch/frontend-ng | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
node-version: ["18"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Run unit tests with yarn | |
run: yarn run test |