Skip to content

Commit

Permalink
using pytest to run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Dec 30, 2024
1 parent 807d66a commit 84db350
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: "run-tests"
description: "run-tests"


runs:
using: "composite"
steps:

- name: Install Dependencies
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__install@dev
with:
pip_install: '-r requirements-test.txt'
shell: bash
run: |
pip install -r requirements-test.txt
- name: Run Unit Tests (Unit)
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__run-unit-tests@dev
with:
test_target: 'tests/unit'

- name: Run Unit Tests (Integration)
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__run-unit-tests@dev
with:
test_target: 'tests/integration'
shell: bash
run: |
coverage run --source=mgraph_ai -m pytest -v -s --durations=0 tests/unit
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# for testing
osbot-utils
pytest
pytest-cov

0 comments on commit 84db350

Please sign in to comment.