Skip to content

RLS: v0.2.0

RLS: v0.2.0 #4

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install poetry==2.0.0
poetry add flake8 pytest coverage
poetry install --no-interaction --no-root
- name: Lint with flake8
run: |
poetry run flake8 .
- name: unittests
run: |
poetry run coverage run -m pytest
poetry run coverage report -m