move tox config into tox.ini

add testenv:genbadges for generating test badges

update README badges
This commit is contained in:
2025-02-27 19:52:37 +00:00
parent e21a458c6f
commit 795296d71e
14 changed files with 2702 additions and 82 deletions

View File

@@ -9,7 +9,7 @@ def ex_dsl():
def ex_callbacks():
scriptpath = Path.cwd() / 'examples' / 'callbacks' / '.'
scriptpath = Path.cwd() / 'examples' / 'events' / 'callbacks' / '.'
subprocess.run([sys.executable, str(scriptpath)])
@@ -33,7 +33,7 @@ def ex_obs():
def ex_observer():
scriptpath = Path.cwd() / 'examples' / 'observer' / '.'
scriptpath = Path.cwd() / 'examples' / 'events' / 'observer' / '.'
subprocess.run([sys.executable, str(scriptpath)])
@@ -53,3 +53,10 @@ def test_all():
steps = [test_basic, test_banana, test_potato]
for step in steps:
step()
def generate_badges():
for kind in ['basic', 'banana', 'potato']:
subprocess.run(
['tox', 'r', '-e', 'genbadges'], env=os.environ.copy() | {'KIND': kind}
)