Skip to content

init

init #2

Workflow file for this run

name: Unit tests
# Controls when the workflow will run
on:
push:
branches:
- '*'
tags:
- 'v*.*.*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10.x'
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libmariadb-dev
python -m pip install --upgrade pip
pip install -r src/requirements.txt
pip install -r requirements-dev.txt
- name: Check for syntax errors or undefined names
run: |
flake8 src tests --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
pytest
- name: Lint with flake8
run: |
flake8 --ignore=E501 src tests --show-source