add workflow to execute unit tests (#118)

This commit is contained in:
Philipp Kohler
2023-06-19 17:33:53 +02:00
committed by GitHub
parent 052556dfff
commit c6cd17e3b4
2 changed files with 28 additions and 1 deletions

26
.github/workflows/pytest-action.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Pytest Execution
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.11
uses: actions/setup-python@v4
with:
python-version: 3.10.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest

View File

@@ -2,4 +2,5 @@ black==23.3.0
openai==0.27.8
pre-commit==3.3.3
ruff==0.0.272
typer==0.9.0
typer==0.9.0
pytest==7.3.1