Skip to content

Update run-unittests.yml #3

Update run-unittests.yml

Update run-unittests.yml #3

Workflow file for this run

name: Python Unit Tests and Coverage
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
test:
runs-on: self-hosted
strategy:
matrix:
python-version: [3.10]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10 # ${{ matrix.python-version }}
- name: Install pip
run: |
python -m ensurepip --upgrade
python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run unit tests
run: pytest
- name: Generate coverage report
run: coverage run -m pytest
- name: Print coverage report
run: coverage report