Skip to content

Commit

Permalink
Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrdev committed Jan 17, 2025
1 parent 3d0d7b2 commit b101689
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- uses: "actions/checkout@v4"
- uses: "astral-sh/setup-uv@v5"
with:
python-version: ${{ matrix.python-version }}

- name: "Install tox"
run: "uv tool install tox --with tox-uv,tox-gh-actions,coverage"
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ correct:
docs:
uv run make -C docs html

lint:
uv run ruff check
uv run ruff format --check --diff

pytests:
uv run pytest $(ARGS)

Expand Down
6 changes: 4 additions & 2 deletions tapeforms/tests/test_fieldsets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from django import forms

from tapeforms.fieldsets import TapeformFieldset, TapeformFieldsetsMixin
Expand Down Expand Up @@ -121,7 +120,10 @@ def test_get_fieldsets_empty(self):
assert len(fieldsets) == 1
assert fieldsets[0].primary_fieldset is True
assert [row[0].name for row in fieldsets[0].visible_fields()] == [
'my_field1', 'my_field2', 'my_field4']
"my_field1",
"my_field2",
"my_field4",
]

def test_get_fieldsets_auto_primary(self):
form = DummyFormWithFieldsets()
Expand Down

0 comments on commit b101689

Please sign in to comment.