Skip to content

Commit

Permalink
add test job and gitignore update
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Nov 24, 2023
1 parent 7b5ba53 commit 1791f72
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Python Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run tests with coverage (configuration in setup.cfg)
run: |
pytest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
.env
.mypy_cache
build/
venv/
.idea
*.egg-info
Expand Down

0 comments on commit 1791f72

Please sign in to comment.