chore: 🧹 mypy config toml and lock file updates #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- 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 coverage pytest-cov pytest_mock pytest-django --system | |
uv pip install -e . --system | |
- name: ✅ Check the correctness of the project config | |
run: poetry check | |
- name: 📜 Migrations | |
env: | |
DJANGO_SETTINGS_MODULE: tests.settings | |
run: python manage.py migrate | |
- name: 🧪 Run tests | |
env: | |
DJANGO_SETTINGS_MODULE: tests.settings | |
run: pytest ./tests --cov=bulk_copy --cov-report=term-missing |