Skip to content

Merge pull request #574 from CSCfi/Add-related-tasks-to-user-story-te… #2975

Merge pull request #574 from CSCfi/Add-related-tasks-to-user-story-te…

Merge pull request #574 from CSCfi/Add-related-tasks-to-user-story-te… #2975

Workflow file for this run

name: Python Unit Tests
on: [push]
jobs:
unit_test:
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9]
node: ['16']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions coveragepy-lcov
- name: Install frontend
run: |
pushd swift_browser_ui_frontend
npm install
npm run build
- name: Run unit tests
run: |
tox -e pytest
coveragepy-lcov --output_file_path lcov.info
- name: Send coverage to coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: lcov.info