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