Skip to content

Merge pull request #270 from NebraLtd/dependabot/pip/setuptools-70.0.0 #1381

Merge pull request #270 from NebraLtd/dependabot/pip/setuptools-70.0.0

Merge pull request #270 from NebraLtd/dependabot/pip/setuptools-70.0.0 #1381

Workflow file for this run

name: Python Unit Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-3 network-manager python3-gi libdbus-1-dev python3-gi-cairo gir1.2-gtk-3.0 dbus libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev libgirepository1.0-dev python3-cairo-dev libcairo2 libcairo2-dev
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4.2
- name: Install dependencies
run: |
poetry install --with dev
- name: Unit tests
run: |
poetry run pytest --cov=gatewayconfig --cov=lib --cov-fail-under=70