From 853bc78d7d2e86206bb8463d5aa697edf394a777 Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Sun, 17 Mar 2024 12:17:28 +0100 Subject: [PATCH] Update backend-api-tests.yml try having api tests launched also on a draft PR --- .github/workflows/backend-api-tests.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backend-api-tests.yml b/.github/workflows/backend-api-tests.yml index 346356c2e..1b6946035 100644 --- a/.github/workflows/backend-api-tests.yml +++ b/.github/workflows/backend-api-tests.yml @@ -1,10 +1,12 @@ name: API Tests -on: - pull_request: - paths: - - "backend/**" - - ".github/workflows/backend-api-tests.yml" +on: + pull_request: + branches: [main, develop] + types: [opened, synchronize] + paths: + - "backend/**" + - ".github/workflows/backend-api-tests.yml" workflow_dispatch: env: @@ -63,4 +65,4 @@ jobs: with: name: api-tests-report path: ${{ env.working-directory }}/pytest-report.html - retention-days: 5 \ No newline at end of file + retention-days: 5