-
Notifications
You must be signed in to change notification settings - Fork 16
Add tests #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mahendrapaipuri
wants to merge
16
commits into
cmd-ntrf:main
Choose a base branch
from
mahendrapaipuri:add_tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add tests #64
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2afe768
Generalization to tmod and lmod
mahendrapaipuri 1f88a5d
Add module system logo handler
mahendrapaipuri cf19c43
Add unit tests for module and handlers
mahendrapaipuri 35f3162
Add test dependencies in pyproject.toml
mahendrapaipuri 818173d
Add pytest config file
mahendrapaipuri acef877
Add pytest related config
mahendrapaipuri faf0200
Add testing workflow
mahendrapaipuri be35a4a
Fix formatting in test workflow
mahendrapaipuri 7c0cde6
Add __init__.py file to tests folder
mahendrapaipuri 62d2fa0
Add module to coverage paths
mahendrapaipuri ee44715
Fix failing unit tests in CI
mahendrapaipuri 20121b4
chore: Misc fixes
mahendrapaipuri d26673e
ci: Remove upload artifact stage in test workflow
mahendrapaipuri 18dd501
ci: Fix CI extension check tests
mahendrapaipuri 410abfa
ci: Install JupyterLab in CI test workflow
mahendrapaipuri 0bcd6cd
chore: Add inline comment suggested by Copilot
mahendrapaipuri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,73 @@ | ||
| # This is a GitHub workflow defining a set of jobs with a set of steps. | ||
| # ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | ||
| # | ||
| name: Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths-ignore: | ||
| - "**.md" | ||
| - "**.rst" | ||
| - ".github/workflows/*" | ||
| - "!.github/workflows/test.yaml" | ||
| push: | ||
| paths-ignore: | ||
| - "**.md" | ||
| - "**.rst" | ||
| - ".github/workflows/*" | ||
| - "!.github/workflows/test.yaml" | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.9", "3.13"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "${{ matrix.python-version }}" | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| cache: yarn | ||
| node-version: 20.x | ||
| registry-url: https://registry.npmjs.org | ||
| cache-dependency-path: yarn.lock | ||
|
|
||
| - name: Update root build packages | ||
| run: | | ||
| pip install --upgrade build pip | ||
| - name: Build Python package | ||
| run: | | ||
| pyproject-build | ||
| - name: Install Python package | ||
| run: | | ||
| pip install -vv '.[test]' 'jupyterlab>4.0' | ||
| - name: List Python packages | ||
| run: | | ||
| pip freeze | ||
| pip check | ||
| - name: Run tests | ||
| run: pytest -vvvv tests | ||
|
|
||
| - name: Check the Jupyter Server extension is installed | ||
| run: | | ||
| jupyter server extension list | ||
| jupyter server extension list 2>&1 | grep -iE "jupyterlmod.*OK" - | ||
| - name: Check the lab extension | ||
| run: | | ||
| jupyter labextension list | ||
| jupyter labextension list 2>&1 | grep -iE '@cmd-ntrf/jupyterlab-lmod.*OK.*' | ||
| python -m jupyterlab.browser_check | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -17,3 +17,5 @@ lib/ | |
| node_modules/ | ||
| *.egg-info/ | ||
| .ipynb_checkpoints | ||
| .coverage | ||
| .yarn/ | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.