Skip to content

Commit f5ba583

Browse files
authored
Merge pull request #2021 from PyCQA/ci/fix-unit-tests
Fix unit tests
2 parents 91a77c9 + bcde9d1 commit f5ba583

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ jobs:
5858

5959
- name: Test
6060
shell: bash
61-
run: |
62-
poetry run pytest tests/unit/ -s --cov=isort/ --cov-report=term-missing ${@-}
63-
poetry run coverage xml
61+
run: ./scripts/test.sh
62+
6463
- name: Report Coverage
6564
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
6665
uses: codecov/codecov-action@v1

poetry.lock

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ smmap2 = "^3.0.1"
8282
gitdb2 = "^4.0.2"
8383
httpx = "^0.13.3"
8484
example_shared_isort_profile = "^0.0.1"
85+
example_isort_formatting_plugin = "^0.0.4"
8586
example_isort_sorting_plugin = "^0.0.3"
8687
flake8 = "^3.8.4"
8788
hypothesis = "^6.10.1"

scripts/test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22
set -euxo pipefail
33

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

0 commit comments

Comments
 (0)