Skip to content

Commit

Permalink
tests/repos: check that zipapps are built and work
Browse files Browse the repository at this point in the history
  • Loading branch information
nbraud committed Aug 19, 2024
1 parent 2ce147c commit 2f9e136
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/test_repos.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
from helpers import bork_check
from bork.config import Config
from helpers import bork_check, python_check

def test_repo(project):
bork_check('clean')
bork_check('build')
bork_check('release', '--dry-run')

if not Config.from_project(project).bork.zipapp.enabled:
return

match tuple((project / "dist").glob("*.pyz")):
case []:
assert False, "No zipapp was produced"
case [zipapp]:
python_check(zipapp, "--version")
case _:
assert False, "Multiple zipapps were produced? O_o"

0 comments on commit 2f9e136

Please sign in to comment.