Skip to content

Merge pull request #4 from bastienlc/dev #4

Merge pull request #4 from bastienlc/dev

Merge pull request #4 from bastienlc/dev #4

Workflow file for this run

name: Lint and Test 🧪
on:
pull_request:
types: [opened, edited, reopened, synchronize]
push:
branches:
- dev
- master
jobs:
lint-black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
lint-isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/isort-action@v1
test:
name: Run tests 🧪
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install -r requirements.txt
sudo apt-get install -y poppler-utils
- name: Run pytest
run: |
pip install pytest pytest-cov
pytest --cov=src --cov-report=xml --cov-report=html