-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/wsl #45
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
Merged
Merged
Feature/wsl #45
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
cb553a2
fix/tests
europanite f5bfcbf
fix/tests
europanite 6dc3b75
fix/tests
europanite fad4d32
fix/tests
europanite 3330d04
remove JupyterDirectory
europanite 09bc24c
fix/tests
europanite d0005c9
fix/tests
europanite 16a3e55
fix/tests
europanite 5b2c294
fix/tests
europanite 3ab4fe0
fix/tests
europanite b2d505c
fix/tests
europanite a343025
fix/tests
europanite a6d9db3
fix/tests
europanite b128424
fix/tests
europanite 81d37a6
fix/tests
europanite cceb6d9
fix/tests
europanite a09cafa
fix/tests
europanite af9ecf3
fix/tests
europanite 3d77fe6
fix/tests
europanite 0d4f182
fix/tests
europanite a9af21e
fix/tests
europanite 17c929b
fix/tests
europanite d0b0647
fix/tests
europanite 8bfc9bb
fix/tests
europanite 307377a
fix/tests
europanite 4719130
fix/tests
europanite 9b2188b
fix/tests
europanite 1ecf9ab
fix/tests
europanite efe1cb8
fix/tests
europanite 87d5c9f
fix/tests
europanite 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
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,76 @@ | ||
| name: Pytest | ||
| on: | ||
| push: | ||
| pull_request: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 0 * * *' | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| tests: | ||
| name: pytest - ${{ matrix.os }} - py${{ matrix.python-version }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ ubuntu-latest, windows-latest ] | ||
| python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] | ||
| env: | ||
| PYTHONUTF8: "1" | ||
| PYTHONPATH: ${{ github.workspace }}/service | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: "pip" | ||
|
|
||
| - name: Install deps (Ubuntu) | ||
| if: matrix.os == 'ubuntu-latest' | ||
| shell: bash | ||
| run: | | ||
| set -eux | ||
| python -m pip install -U pip | ||
| pip install -r service/requirements.test.txt | ||
| if [ -f service/pyproject.toml ] || [ -f service/setup.cfg ] || [ -f service/setup.py ]; then | ||
| pip install -e service | ||
| fi | ||
| - name: Install deps (Windows) | ||
| if: matrix.os == 'windows-latest' | ||
| shell: pwsh | ||
| run: | | ||
| $ErrorActionPreference = "Stop" | ||
| python -m pip install -U pip | ||
| pip install -r service/requirements.test.txt | ||
| $hasPythonProject = (Test-Path -Path 'service/pyproject.toml') -or | ||
| (Test-Path -Path 'service/setup.cfg') -or | ||
| (Test-Path -Path 'service/setup.py') | ||
| if ($hasPythonProject) { | ||
| python -m pip install -e service | ||
| } else { | ||
| Write-Host 'service packaging files not found; skipping' | ||
| } | ||
| - name: Show versions | ||
| shell: bash | ||
| run: | | ||
| python --version | ||
| pip --version | ||
| pytest --version | ||
| python -c "import sys,platform,os;print(platform.platform());print(sys.version);print('PYTHONPATH=',os.environ.get('PYTHONPATH'))" | ||
| - name: Run tests with coverage | ||
| shell: bash | ||
| run: | | ||
| python -m coverage run -m pytest -q | ||
| python -m coverage xml -o coverage.xml | ||
| - name: Upload coverage.xml | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage-${{ matrix.os }}-py${{ matrix.python-version }} | ||
| path: coverage.xml | ||
| if-no-files-found: error | ||
|
|
||
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
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 |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # write required libraries. | ||
| -r requirements.txt | ||
| pytest==8.4.2 | ||
| pytest-cov==5.0.0 | ||
| ruff==0.13.1 |
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.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 8 months ago
To fix the problem, add a
permissionsblock to the workflow. The minimal recommended permission iscontents: read, which allows jobs read-only access to the repository contents and is sufficient for most test workflows that do not need to write or modify repository resources. This is best added at the root level, immediately after thenameand triggers, thereby applying it to all jobs unless overridden at the job level.Steps:
onon line 2 (or, equivalently, afteronand beforeconcurrency):