diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a9e731..9791d70 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }}" \ No newline at end of file