From 0e0eea40b8ba996ec4242a48883c7eb5e0bbe76a Mon Sep 17 00:00:00 2001 From: dunossauro Date: Mon, 3 Jun 2024 16:50:22 -0300 Subject: [PATCH] Adicionando task para validar o act --- tasks.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks.py b/tasks.py index af2892d1..fea6afd1 100644 --- a/tasks.py +++ b/tasks.py @@ -68,6 +68,16 @@ def lint_sub(c): c.run('poetry run task lint') +@task +def test_act(c): + code_path = Path('./codigo_das_aulas/').resolve().glob('*') + for path in sorted(code_path): + print(path) + with c.cd(str(path)): + if (path / '.github').exists(): + c.run('act') + + @task def test_docker_build(c): code_path = Path('./codigo_das_aulas/').resolve().glob('*')