Skip to content

Commit c24c299

Browse files
authored
chore(ci): run some tests using Poetry build instead of source (#129)
To verify that it's getting packaged correctly. In particular, I need to make sure the `.html` files are in the package.
1 parent f16cb00 commit c24c299

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ jobs:
8080
python-version: ${{ matrix.python }}
8181
- run: pip install poetry
8282
- run: poetry install
83+
- run: poetry build --format wheel
84+
- run: rm -rf django_object_actions
85+
- run: pip install --force-reinstall dist/*.whl
8386
- run: poetry add "Django==${{ matrix.django }}"
8487
- run: make test
8588

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ quickstart: resetdb
1212

1313
dev: ## Run the example project
1414
@echo Browse at http://localhost:8000/admin/
15-
python $(MANAGE) runserver
15+
PYTHONPATH=. python $(MANAGE) runserver
1616

1717
clean: ## Remove generated files
1818
rm -rf .coverage

0 commit comments

Comments
 (0)