Skip to content

Commit

Permalink
pytest_test.yml (#424)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabiana Campanari <fabicampanari@gmail.com>
  • Loading branch information
FabianaCampanari authored Apr 23, 2024
1 parent 376a0ab commit 83cf600
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pytest_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The tests runs and will return in JUnit format while the code coverage results are emitted in Coverage.

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

0 comments on commit 83cf600

Please sign in to comment.