Skip to content

docs: Fix Python version and repository URL in CONTRIBUTING.md #6

docs: Fix Python version and repository URL in CONTRIBUTING.md

docs: Fix Python version and repository URL in CONTRIBUTING.md #6

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PYTHON_VERSION: "3.11"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: uv sync --extra dev
- name: Run ruff check
run: uv run ruff check bizon_platform tests
- name: Run ruff format
run: uv run ruff format --check bizon_platform tests
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: bizon
POSTGRES_PASSWORD: bizon
POSTGRES_DB: bizon_platform_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: uv sync --extra dev
- name: Run tests
env:
DATABASE_URL: postgresql+asyncpg://bizon:bizon@localhost:5432/bizon_platform_test
run: uv run pytest -v