mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-03-12 04:36:10 -07:00
* 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
23 lines
538 B
YAML
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
|
|
|