-
Notifications
You must be signed in to change notification settings - Fork 2
Bug/setup tests #116
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
Bug/setup tests #116
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0400573
Use correct name for documentation repository
thompson318 c43beb6
Add a test workflow
thompson318 4673563
Fix yaml
thompson318 0eeaeb0
Add coverage to requirements
thompson318 326a911
Rename test and remove main tests for now
thompson318 4ab25b1
Add token to read docs
thompson318 e96d51f
Show env
thompson318 531fc96
test env
thompson318 e94cb58
test env
thompson318 fe8fbe6
With token
thompson318 265a812
Try and use token
thompson318 6957ce1
typos
thompson318 774970d
Put token in https
thompson318 f977fc5
token not string
thompson318 2c47eac
Update entries in test config files
thompson318 67b10a5
Use temp dir for runner test and add empty config dir
thompson318 14cb266
Use setuptools not disttools (fixes depreciation warning)
thompson318 732e7cc
Revert "Rename test and remove main tests for now"
thompson318 bb7336c
Test name
thompson318 0e444b7
Tidied up global-config test file
thompson318 a7275bb
Locked dependencies using uv
thompson318 7645a72
Simplify coverage reporting
thompson318 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: emap setup tests | ||
| on: | ||
| push: | ||
| branches: [ main, develop ] | ||
| pull_request: | ||
| branches: [ main, develop, sk/waveform-dev ] | ||
| repository_dispatch: | ||
| permissions: | ||
| contents: read | ||
| checks: write | ||
| id-token: write | ||
| pull-requests: read # needed by paths-filter | ||
| jobs: | ||
| filter: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| emap-setup: ${{ steps.filter.outputs.emap-setup }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: dorny/paths-filter@v2 | ||
| id: filter | ||
| with: | ||
| filters: | | ||
| emap-setup: | ||
| - '.github/**' | ||
| - 'emap-checker.xml' | ||
| - 'emap-setup/**' | ||
| emap-setup-tests: | ||
| needs: [filter] | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GH_PAT_READ_AND_COMMENT }} | ||
| if: needs.filter.outputs.emap-setup == 'true' | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
| cache: "pip" | ||
| - name: Install Python Dependencies | ||
| run: | | ||
| python -m pip install -r emap-setup/requirements.txt | ||
| - name: Run tests | ||
| run: | | ||
| cd emap-setup | ||
| pytest --cov=./ --cov-report=term |
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,4 @@ | ||
| [run] | ||
| omit = | ||
| __init__.py | ||
| tests/* |
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,7 @@ | ||
| pytest | ||
| pytest-cov | ||
| PyYAML | ||
| gitpython | ||
| black | ||
| tqdm | ||
| setuptools |
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,5 +1,57 @@ | ||
| pytest | ||
| PyYAML | ||
| gitpython | ||
| black | ||
| tqdm | ||
| # This file was autogenerated by uv via the following command: | ||
| # uv pip compile requirements.in -o requirements.txt | ||
| black==25.9.0 | ||
| # via -r requirements.in | ||
| click==8.3.0 | ||
| # via black | ||
| coverage==7.10.7 | ||
| # via pytest-cov | ||
| exceptiongroup==1.3.0 | ||
| # via pytest | ||
| gitdb==4.0.12 | ||
| # via gitpython | ||
| gitpython==3.1.45 | ||
| # via -r requirements.in | ||
| iniconfig==2.1.0 | ||
| # via pytest | ||
| mypy-extensions==1.1.0 | ||
| # via black | ||
| packaging==25.0 | ||
| # via | ||
| # black | ||
| # pytest | ||
| pathspec==0.12.1 | ||
| # via black | ||
| platformdirs==4.4.0 | ||
| # via black | ||
| pluggy==1.6.0 | ||
| # via | ||
| # pytest | ||
| # pytest-cov | ||
| pygments==2.19.2 | ||
| # via pytest | ||
| pytest==8.4.2 | ||
| # via | ||
| # -r requirements.in | ||
| # pytest-cov | ||
| pytest-cov==7.0.0 | ||
| # via -r requirements.in | ||
| pytokens==0.1.10 | ||
| # via black | ||
| pyyaml==6.0.2 | ||
| # via -r requirements.in | ||
| setuptools==80.9.0 | ||
| # via -r requirements.in | ||
| smmap==5.0.2 | ||
| # via gitdb | ||
| tomli==2.2.1 | ||
| # via | ||
| # black | ||
| # coverage | ||
| # pytest | ||
| tqdm==4.67.1 | ||
| # via -r requirements.in | ||
| typing-extensions==4.15.0 | ||
| # via | ||
| # black | ||
| # exceptiongroup |
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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.