Browse Source

Fix pipeline

pull/3/head
e-maks 2 years ago
parent
commit
f4b1d4a9f3
  1. 20
      .github/workflows/main.yaml

20
.github/workflows/main.yaml

@ -2,11 +2,17 @@ name: lab-testing @@ -2,11 +2,17 @@ name: lab-testing
# add your pipline description below
on:
push:
branches:
- main
pull_request:
jobs:
test:
branches:
- main
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -20,10 +26,8 @@ on: @@ -20,10 +26,8 @@ on:
- name: Install dependencies
run: poetry install; poetry add pytest; poetry add pytest-mock;
- name: Run pytest
run: poetry run pytest tests/e2e/test_*.py
push:
jobs:
test:
run: poetry run pytest tests/unit/test_*.py
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -37,4 +41,4 @@ on: @@ -37,4 +41,4 @@ on:
- name: Install dependencies
run: poetry install; poetry add pytest; poetry add pytest-mock;
- name: Run pytest
run: poetry run pytest tests/unit/test_*.py
run: poetry run pytest tests/e2e/test_*.py
Loading…
Cancel
Save