Skip to content

active overwrite exclusion #107

active overwrite exclusion

active overwrite exclusion #107

Workflow file for this run

name: Integration Tests
on:
pull_request:
branches:
- main
jobs:
Test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16.1-bullseye
env:
POSTGRES_PASSWORD: masterbase
POSTGRES_USER: MEGASCATTERBOMB
POSTGRES_DB: demos
ports:
- 8050:5432
minio:
image: minio/minio:edge-cicd
ports:
- 9000:9000
env:
MINIO_ROOT_USER: MEGASCATTERBOMB
MINIO_ROOT_PASSWORD: masterbase
options: --health-cmd "curl http://localhost:9000/minio/health/live"
env:
FORCE_COLOR: 1
TERM: xterm-color
MYPY_FORCE_COLOR: 1
MYPY_FORCE_TERMINAL_WIDTH: 200
PYTEST_ADDOPTS: --color=yes
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Fetch mc client
run: wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc
- name: Create the bucket
run: ./mc alias set blobs http://127.0.0.1:9000 MEGASCATTERBOMB masterbase
- name: more minio bs
run: ./mc mb -p blobs/demoblobs
- name: Remove mc client
run: rm -v ./mc
- name: Install PDM
run: |
python -m pip install --upgrade pip
python -m pip install pdm
- name: Install dependencies
run: pdm sync -G:all
- name: Run tests
run: |
pdm run alembic upgrade head
pdm run pytest -m integration
env:
POSTGRES_PASSWORD: masterbase
POSTGRES_USER: MEGASCATTERBOMB
POSTGRES_HOST: localhost
POSTGRES_PORT: 8050
MINIO_HOST: localhost
MINIO_PORT: 9000
MINIO_ACCESS_KEY: MEGASCATTERBOMB
MINIO_SECRET_KEY: masterbase
DEVELOPMENT: true