fauxpilot/.github/workflows/python_backend_tests.yaml
Brendan Dolan-Gavitt 1b2b8ec251
Add basic CI that tests the Python backend (#124)
* Basic action that runs pytest

* fix indentation

* debugging actions :(

* pull the images in a separate step so it doesn't take so long to build

* Split out the container build

* Another try, fixing missing env vars
2022-11-23 21:01:29 -05:00

23 lines
538 B
YAML

name: FauxPilot Python Backend Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/python_backend/requirements.txt
- name: Build container
run: |
cp tests/python_backend/runner.env .env &&
docker compose build &&
rm -f .env
- name: Run tests
run: pytest tests