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