mirror of
https://github.com/QualityInUse/lab-testing-maksktl.git
synced 2026-08-05 19:15:28 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d6ac6705f2 | |||
| f4b1d4a9f3 |
+34
-35
@@ -2,39 +2,38 @@ name: lab-testing
|
|||||||
|
|
||||||
# add your pipline description below
|
# add your pipline description below
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
on:
|
jobs:
|
||||||
pull_request:
|
unit-tests:
|
||||||
jobs:
|
if: github.event_name == 'push'
|
||||||
test:
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-latest
|
steps:
|
||||||
steps:
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/setup-python@v4
|
||||||
- uses: actions/setup-python@v4
|
with:
|
||||||
with:
|
python-version: '3.11.6'
|
||||||
python-version: '3.11.6'
|
- name: Run image
|
||||||
- name: Run image
|
uses: abatilo/actions-poetry@v2
|
||||||
uses: abatilo/actions-poetry@v2
|
with:
|
||||||
with:
|
poetry-version: '1.7.1'
|
||||||
poetry-version: '1.7.1'
|
- 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
|
e2e-tests:
|
||||||
push:
|
runs-on: ubuntu-latest
|
||||||
jobs:
|
if: github.event_name == 'pull_request'
|
||||||
test:
|
steps:
|
||||||
runs-on: ubuntu-latest
|
- uses: actions/checkout@v4
|
||||||
steps:
|
- uses: actions/setup-python@v4
|
||||||
- uses: actions/checkout@v4
|
with:
|
||||||
- uses: actions/setup-python@v4
|
python-version: '3.11.6'
|
||||||
with:
|
- name: Run image
|
||||||
python-version: '3.11.6'
|
uses: abatilo/actions-poetry@v2
|
||||||
- name: Run image
|
with:
|
||||||
uses: abatilo/actions-poetry@v2
|
poetry-version: '1.7.1'
|
||||||
with:
|
- name: Install dependencies
|
||||||
poetry-version: '1.7.1'
|
run: poetry install; poetry add pytest; poetry add pytest-mock;
|
||||||
- name: Install dependencies
|
- name: Run pytest
|
||||||
run: poetry install; poetry add pytest; poetry add pytest-mock;
|
run: poetry run pytest tests/e2e/test_*.py
|
||||||
- name: Run pytest
|
|
||||||
run: poetry run pytest tests/unit/test_*.py
|
|
||||||
Reference in New Issue
Block a user