Skip to content

Commit

Permalink
changing to unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
elkanamol committed Sep 1, 2024
1 parent d80e9fb commit ef76ab1
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,19 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov flake8
pip install flake8
# - name: Run linting
# run: flake8 .

- name: Run tests with pytest and coverage
- name: Run tests with unittest
id: run-tests
run: |
pytest_output=$(pytest --cov=sierra_status --cov-report=xml)
echo "::set-output name=pytest_output::$pytest_output"
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
test_output=$(python -m unittest discover tests)
echo "::set-output name=test_output::$test_output"
- name: Print test results
if: always()
run: |
echo "Test Results:"
echo "${{ steps.run-tests.outputs.pytest_output }}"
echo "${{ steps.run-tests.outputs.test_output }}"

0 comments on commit ef76ab1

Please sign in to comment.