Skip to content

Commit

Permalink
add workflow to execute unit tests (AntonOsika#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoup97 authored Jun 19, 2023
1 parent 052556d commit c6cd17e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/pytest-action.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c6cd17e

Please sign in to comment.