Skip to content

Merge pull request #5 from MrMaydo/dev #14

Merge pull request #5 from MrMaydo/dev

Merge pull request #5 from MrMaydo/dev #14

name: Python tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install dependencies
run: |
poetry install --with dev
- name: Run pytest
run: |
poetry run pytest
- name: Upload pytest HTML report
if: always()
uses: actions/upload-artifact@v4
with:
name: pytest-report
path: reports/report.html