Compare commits
3 Commits
562fa5b8c5
...
d6ac6705f2
| Author | SHA1 | Date |
|---|---|---|
|
|
d6ac6705f2 | 2 years ago |
|
|
f4b1d4a9f3 | 2 years ago |
|
|
238bb4bb8a | 2 years ago |
7 changed files with 305 additions and 1 deletions
@ -1,3 +1,39 @@ |
|||||||
name: lab-testing |
name: lab-testing |
||||||
|
|
||||||
# add your pipline description below |
# add your pipline description below |
||||||
|
|
||||||
|
on: [push, pull_request] |
||||||
|
|
||||||
|
jobs: |
||||||
|
unit-tests: |
||||||
|
if: github.event_name == 'push' |
||||||
|
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/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 |
||||||
Loading…
Reference in new issue