Files
gpt-engineer/.github/workflows/ci.yaml
2023-06-23 12:01:29 +02:00

31 lines
549 B
YAML

name: Pytest Execution
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