From c4cfe0b95eb6e6409f6c04d84b5e672e00648627 Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Sat, 21 Oct 2023 23:02:00 +0300 Subject: [PATCH] dev: tests fix Signed-off-by: Alexander Piskun --- .github/workflows/analysis-coverage.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/analysis-coverage.yml b/.github/workflows/analysis-coverage.yml index 82c8ef05..01f5bb4c 100644 --- a/.github/workflows/analysis-coverage.yml +++ b/.github/workflows/analysis-coverage.yml @@ -143,19 +143,24 @@ jobs: - name: Enable Talk run: php occ app:enable spreed - - name: Generate coverage report + - name: Generate coverage report (1) + working-directory: nc_py_api run: | - cd nc_py_api coverage run --data-file=.coverage.talk_bot tests/_talk_bot.py & echo $! > /tmp/_talk_bot.pid coverage run --data-file=.coverage.ci -m pytest kill -15 $(cat /tmp/_talk_bot.pid) timeout 3m tail --pid=$(cat /tmp/_talk_bot.pid) -f /dev/null coverage run --data-file=.coverage.at_the_end -m pytest tests/_tests_at_the_end.py - cd .. + + - name: Uninstall NcPyApi + run: | php occ app_api:app:unregister "$APP_ID" --silent php occ app_api:daemon:unregister manual_install - cd nc_py_api + + - name: Generate coverage report (2) + working-directory: nc_py_api + run: | coverage run --data-file=.coverage.ci_install_models tests/_install_init_handler_models.py & echo $! > /tmp/_install_models.pid python3 tests/_install_wait.py http://127.0.0.1:$APP_PORT/heartbeat "\"status\":\"ok\"" 15 0.5