Skip to content

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienlc committed Mar 29, 2024
1 parent e7bf0f3 commit a45a39b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test 🧪

on:
pull_request:
push:
branches:
- dev
- master

jobs:
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: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=src --cov-report=xml --cov-report=html
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ local_scheme = "no-local-version"

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

[tool.pytest.ini_options]
pythonpath = "src"
Empty file added tests/__init__.py
Empty file.

0 comments on commit a45a39b

Please sign in to comment.