Skip to content

Add test for when interactive jobs dies #402

Add test for when interactive jobs dies

Add test for when interactive jobs dies #402

Workflow file for this run

name: Testing bartender
on: push
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install deps
run: |
pip install -U pip wheel
pip install poetry
poetry install
env:
POETRY_VIRTUALENVS_CREATE: false
# Workaround for random install failures
POETRY_INSTALLER_PARALLEL: false
- name: Run black check
run: poetry run black --check .
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install deps
run: |
pip install -U pip wheel
pip install poetry
poetry install
env:
POETRY_VIRTUALENVS_CREATE: false
# Workaround for random install failures
POETRY_INSTALLER_PARALLEL: false
- name: Run flake8 check
run: poetry run flake8 --count .
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install deps
run: |
pip install -U pip wheel
pip install poetry
poetry install
env:
POETRY_VIRTUALENVS_CREATE: false
# Workaround for random install failures
POETRY_INSTALLER_PARALLEL: false
- name: Run mypy check
run: poetry run mypy src tests tests_dirac
pytest:
runs-on: ubuntu-latest
services:
bartender-db:
image: postgres:15.2-bullseye
env:
POSTGRES_PASSWORD: bartender
POSTGRES_USER: bartender
POSTGRES_DB: bartender
options: >-
--health-cmd="pg_isready"
--health-interval=10s
--health-timeout=5s
--health-retries=5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install deps
run: |
pip install -U pip wheel
pip install poetry
poetry install
env:
POETRY_VIRTUALENVS_CREATE: false
# Workaround for random install failures
POETRY_INSTALLER_PARALLEL: false
- name: Run pytest check
run: poetry run pytest -vv --cov="src" tests
env:
BARTENDER_HOST: "0.0.0.0"
BARTENDER_DB_HOST: localhost