Browse Source

Update pipeline

main
e-maks 2 years ago
parent
commit
d6ac6705f2
  1. 11
      .github/workflows/main.yaml

11
.github/workflows/main.yaml

@ -2,17 +2,11 @@ name: lab-testing
# add your pipline description below # add your pipline description below
on: on: [push, pull_request]
push:
branches:
- main
pull_request:
branches:
- main
jobs: jobs:
unit-tests: unit-tests:
if: github.event_name == 'push'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -29,6 +23,7 @@ jobs:
run: poetry run pytest tests/unit/test_*.py run: poetry run pytest tests/unit/test_*.py
e2e-tests: e2e-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4

Loading…
Cancel
Save