-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests take now a JUPYTER_TYPE that determines the if executed with jupyter lab or or notebook. By that the class names are determined. Previous tests can be now execued with the tox environment tests-notebook-7, the jupyter lab tests with tests-lab-3 tests. Tests have been extended where they needed to be to also work with jupyter lab.
- Loading branch information
1 parent
3537cad
commit 991aa33
Showing
5 changed files
with
372 additions
and
109 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/tests.yml → .github/workflows/tests-lab-3.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Tests | ||
name: Tests - lab 3 | ||
|
||
on: | ||
push: | ||
|
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,38 @@ | ||
name: Tests - notebook-7 | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
# Check all PR | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-22.04 | ||
python-version: "3.11" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Firefox | ||
uses: browser-actions/setup-firefox@latest | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- run: pip install tox | ||
|
||
- name: run Python tests | ||
run: tox -e tests-notebook-7 | ||
|
||
- name: run Python tests for coverage | ||
run: tox -e coverage | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: coverage.xml | ||
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
Oops, something went wrong.