|
|
|
@ -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: |
|
|
|
|
|
|
|
branches: |
|
|
|
|
|
|
|
- main |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
test: |
|
|
|
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 |