Skip to content

Application upgrade to SQLAlchemy, Pytest #122

Application upgrade to SQLAlchemy, Pytest

Application upgrade to SQLAlchemy, Pytest #122

Workflow file for this run

name: Run pytest
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t glider-dac-build .
- name: Install testing requirements and run tests
# FIXME: Why is it necessary to set FLASK_ENV to TESTING here when
# pytest runs off GHA usually set this properly?
run: >
docker run -e FLASK_ENV=TESTING --rm -u root glider-dac-build bash -c
"pip install --no-cache -r /glider-dac/test_requirements.txt &&
pytest /glider-dac/glider_dac/tests"