-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize the tests into unit/functional/integration/external (#1155)
* Split tests into unit/integration/functional/external * Include tests in the Jupytext package * Move the test notebooks to tests/data/notebooks * Turn the tests notebooks into fixtures * Remove the world population notebook from the examples In order to keep the package size under control when tests are included * Move the codecov.yml configuration file to .github * Filter more of the expected warnings * packaging is a dependency
- Loading branch information
Showing
609 changed files
with
1,420 additions
and
4,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
codecov: | ||
notify: | ||
after_n_builds: 15 | ||
|
||
comment: | ||
after_n_builds: 15 | ||
|
||
coverage: | ||
status: | ||
project: | ||
source: | ||
paths: | ||
- "src/jupytext/" | ||
target: 97% | ||
threshold: 0.002 | ||
tests: | ||
paths: | ||
- "tests/" | ||
target: 100% | ||
unit-tests: | ||
flags: | ||
- unit | ||
functional-tests: | ||
flags: | ||
- functional | ||
integration-tests: | ||
flags: | ||
- integration | ||
external-tests: | ||
flags: | ||
- external | ||
patch: | ||
default: | ||
target: 80% # new contributions should have a coverage at least equal to target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: test-categories | ||
run-name: Run Unit/Functional/Integration and External tests using Pip | ||
|
||
on: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-test_classification | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-pip: | ||
continue-on-error: ${{ matrix.experimental || false }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.11" ] | ||
coverage: [unit, functional, integration, external] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Base Setup | ||
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | ||
with: | ||
python_version: ${{ matrix.python-version }} | ||
|
||
- name: Install from source | ||
run: HATCH_BUILD_HOOKS_ENABLE=false python -m pip install -e '.[test-cov,test-${{ matrix.coverage }}]' markdown-it-py~=3.0 | ||
|
||
- name: Install a Jupyter Kernel | ||
run: python -m ipykernel install --name python_kernel --user | ||
|
||
- name: Run the tests | ||
run: pytest tests/${{ matrix.coverage }} --cov | ||
|
||
- name: Upload the coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: ${{ matrix.coverage }} | ||
fail_ci_if_error: true | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
exclude: > | ||
(?x)^( | ||
demo/.*| | ||
tests/notebooks/.*| | ||
tests/data/notebooks/.*| | ||
)$ | ||
repos: | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.