From 5e45a7ca36a0bfb1e09a5173bb6ff362080a6b31 Mon Sep 17 00:00:00 2001 From: Vini47 Date: Tue, 3 Sep 2024 22:24:48 -0300 Subject: [PATCH] adicionado os testes unitarios ao pipeline --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 386febc1..50a4b847 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,18 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - - name: Run HTTP server and verify + - name: Run Python unit Tests + run: | + echo "Running tests..." + python web/Bases\ web/jsons/_test_compras_automatico.py + python web/Bases\ web/jsons/_test_convenio_automatico.py + python web/Bases\ web/jsons/_test_credito_automatico.py + python web/Bases\ web/jsons/_test_licitacoes_automatico.py + python web/Bases\ web/jsons/_test_verbas_automatico.py + # The workflow will fail automatically if any test fails + # Any output from test failures will be visible in the logs + + - name: Build and Run HTTP server and verify run: | python -m http.server 8000 & # Give the server time to start