Skip to content

Commit

Permalink
Separate dependency group for bakery
Browse files Browse the repository at this point in the history
  • Loading branch information
amureki committed Oct 27, 2023
1 parent f50b751 commit ff180ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install .[test]
- run: python -m pip install .[test,bakery]
- run: python -m pip install django~=${{ matrix.django-version }}.0
if: matrix.django-version != 'latest'
- run: python -m pip install git+https://github.com/django/django.git@main#egg=django
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ test = [
"pytest",
"pytest-cov",
"pytest-django",
"model-bakery",
]
psycopg2 = ["psycopg2-binary"]
bakery = ["model-bakery"]

[project.urls]
Project-URL = "https://github.com/voiio/citext"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_baker_generators.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from model_bakery import baker
import pytest

from tests.testapp import models


def test_generators():
baker = pytest.importorskip("model_bakery.baker")
assert baker.prepare(models.TestModel)

0 comments on commit ff180ff

Please sign in to comment.