Skip to content

Commit

Permalink
added unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Becker committed Jun 11, 2024
1 parent 3100bac commit 5fd022a
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,20 @@ jobs:
env: *env

unittest:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest tests.py --junitxml=results.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: results.xml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest tests.py --junitxml=results.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: results.xml
needs: pre-feature-pipeline

0 comments on commit 5fd022a

Please sign in to comment.