Skip to content

Added unit tests and actions yaml #8

Added unit tests and actions yaml

Added unit tests and actions yaml #8

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11" ]
steps:
- name: 📥 Checkout code
uses: actions/checkout@v3
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 📦 Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: 📦 Install dependencies with Poetry
run: |
poetry lock
poetry install --with dev
- name: 🧪 Run tests with coverage
run: |
poetry run pytest --cov=pytest_reporter_plus tests/unit/ --cov-fail-under=17