Skip to content

ci: 👷 relax commit style #133

ci: 👷 relax commit style

ci: 👷 relax commit style #133

Workflow file for this run

name: Python-CI
on: [push, pull_request, workflow_dispatch]
jobs:
ci:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.6.0
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: 🐘 Run PostgreSQL container
run: docker run -d --name bulk_copy -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -e POSTGRES_HOST=localhost -e POSTGRES_PORT=5432 -p 5432:5432 postgres
- name: Install the latest version of uv 🌟
uses: astral-sh/setup-uv@v3
- name: 📦 Install the base dependencies
run: |
uv pip install poetry psycopg2-binary pytest --system
uv pip install -e . --system
- name: ✅ Check the correctness of the project config
run: poetry check
- name: 📜 Migrations
run: python manage.py migrate
- name: 🧪 Run tests
run: "python -m pytest ./tests --cov=bulk_copy --cov-report=term-missing"