Skip to content

Zklend liquidation research #1202

Zklend liquidation research

Zklend liquidation research #1202

Workflow file for this run

name: CI Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
shared:
uses: ./.github/workflows/shared_workflow.yml
with:
python-version: "3.12"
env-vars: |
ENV_VERSION=DEV
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5433:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create .env file
run: cp .env.dev .env
- name: Start services
run: docker compose -f docker-compose.dev.yaml --env-file .env up -d --build
- name: Run tests
run: |
docker compose exec backend poetry run pytest web_app/tests
- name: Run tests coverage
run: |
docker compose exec backend poetry run pytest --cov=web_app/tests --cov-fail-under=90
- name: Tear down
run: |
docker compose down