Skip to content

Cross-table interval proposer and related functionality #206

Cross-table interval proposer and related functionality

Cross-table interval proposer and related functionality #206

Workflow file for this run

---
name: unit test action
on:
pull_request:
# Run on merge to main because caches are inherited from parent branches
push:
branches:
- main
env:
# This should be the default but we'll be explicit
PYTHON_VERSION: "3.10"
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Install prerequisites
id: install-prereqs
shell: bash
run: |
sudo apt install python3-poetry mssql-tools18
background: true
- name: Start PostgreSQL
shell: bash
run: |
sudo systemctl start postgresql.service
- name: Wait for poetry to be installed
wait: install-prereqs
- name: Configure poetry
shell: bash
run: python -m poetry config virtualenvs.in-project true
- name: Install dependencies
id: install-deps
shell: bash
if: steps.poetry-cache.outputs.cache-hit != 'true'
run: python -m poetry install --all-extras
background: true
- name: Set up MS SQL Server
uses: hoverkraft-tech/compose-action@11beaa1c2dae4e8ed7b1665aa074723b6cecb0e4 # v3.0.0
with:
compose-file: ./docker-compose.yml
- name: Wait for the dependencies
wait:
- install-deps
- name: Run tests
shell: bash
run: poetry run python -m pytest -rs