mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2026-01-27 16:56:00 +01:00
* First step in collecting learnings * Rename prompts * remove requirements, use pip install -e . instead * Add requirements * Fix tests
31 lines
555 B
YAML
31 lines
555 B
YAML
name: Pip install and pytest
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "**.py"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "**.py"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.10"
|
|
cache: pip
|
|
|
|
- name: Install package
|
|
run: pip install -e .
|
|
|
|
- name: Install test runner
|
|
run: pip install pytest pytest-cov
|
|
|
|
- name: Run unit tests
|
|
run: pytest --cov=gpt_engineer
|