Skip to content

Commit

Permalink
Merge pull request #2021 from PyCQA/ci/fix-unit-tests
Browse files Browse the repository at this point in the history
Fix unit tests
  • Loading branch information
staticdev committed Dec 11, 2022
2 parents 91a77c9 + bcde9d1 commit f5ba583
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -58,9 +58,8 @@ jobs:

- name: Test
shell: bash
run: |
poetry run pytest tests/unit/ -s --cov=isort/ --cov-report=term-missing ${@-}
poetry run coverage xml
run: ./scripts/test.sh

- name: Report Coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
uses: codecov/codecov-action@v1
18 changes: 17 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -82,6 +82,7 @@ smmap2 = "^3.0.1"
gitdb2 = "^4.0.2"
httpx = "^0.13.3"
example_shared_isort_profile = "^0.0.1"
example_isort_formatting_plugin = "^0.0.4"
example_isort_sorting_plugin = "^0.0.3"
flake8 = "^3.8.4"
hypothesis = "^6.10.1"
Expand Down
1 change: 0 additions & 1 deletion scripts/test.sh
@@ -1,6 +1,5 @@
#!/bin/bash
set -euxo pipefail

./scripts/lint.sh
poetry run pytest tests/unit/ -s --cov=isort/ --cov-report=term-missing ${@-} --ignore=tests/unit/test_deprecated_finders.py
poetry run coverage html

0 comments on commit f5ba583

Please sign in to comment.