mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-19 05:35:21 +01:00
add workflow to execute unit tests (#118)
This commit is contained in:
26
.github/workflows/pytest-action.yml
vendored
Normal file
26
.github/workflows/pytest-action.yml
vendored
Normal 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
|
||||||
@@ -3,3 +3,4 @@ openai==0.27.8
|
|||||||
pre-commit==3.3.3
|
pre-commit==3.3.3
|
||||||
ruff==0.0.272
|
ruff==0.0.272
|
||||||
typer==0.9.0
|
typer==0.9.0
|
||||||
|
pytest==7.3.1
|
||||||
Reference in New Issue
Block a user