Skip to content

Fix bulk_create without tenant context #240

Fix bulk_create without tenant context

Fix bulk_create without tenant context #240

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
POETRY_VERSION: 1.7.1
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
database:
- "sqlite"
- "postgres"
steps:
- uses: actions/checkout@v4
- uses: harmon758/postgresql-action@v1
with:
postgresql version: 14
postgresql db: "easy_tenants"
postgresql user: "postgres"
postgresql password: "postgres"
if: matrix.database == 'postgres'
- name: Install poetry
run: pipx install poetry==$POETRY_VERSION
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: install Tox
run: python -m pip install --upgrade pip tox tox-gh-actions
- name: test with python ${{ matrix.python-version }}, database ${{ matrix.database }}
env:
DATABASE: ${{ matrix.database }}
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: ${{ matrix.database }}, py${{ matrix.python-version }}, django-${{ matrix.django-version }}
name: tests