From d6ac6705f2274e0b49c338dbb6026632589dce61 Mon Sep 17 00:00:00 2001 From: e-maks Date: Mon, 26 Feb 2024 22:57:41 +0300 Subject: [PATCH] Update pipeline --- .github/workflows/main.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index afb5dca..18e9f5c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -2,17 +2,11 @@ name: lab-testing # add your pipline description below -on: - push: - branches: - - main - pull_request: - branches: - - main - +on: [push, pull_request] jobs: unit-tests: + if: github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -29,6 +23,7 @@ jobs: run: poetry run pytest tests/unit/test_*.py e2e-tests: runs-on: ubuntu-latest + if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4