Skip to content

Adding tests and coverage #4

Adding tests and coverage

Adding tests and coverage #4

Workflow file for this run

name: CI workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
ci:
runs-on: ubuntu-latest
container: python:3.9-alpine
defaults:
run:
working-directory: ./src
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r requirements.txt
- name: Lint
run: flake8 *.py
- name: Run tests
run: coverage run -m pytest
- name: Coverage
run: coverage report -m