-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add pytest in GitHub Actions #9
Merged
Merged
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
921998d
Add automated pytest with GitHub Actions and fix egrid test
jpfleischer 0d6e434
Merge branch 'master' of https://github.com/JGreenlee/e-mission-commo…
jpfleischer 22a9c18
Remove redundant GitHub Actions jobs
jpfleischer 8633c2c
Add jest job
jpfleischer 8d0bcc9
Fix npm test
jpfleischer fd71135
Fix jest
jpfleischer cd8250a
Fix babel and jest
jpfleischer 8ce82d2
Remove .babelrc
jpfleischer 65820a6
Try to see the exception in github actions
jpfleischer 9ff5581
Debug no fetch
jpfleischer 4676309
Reset util.js
jpfleischer 2c1698d
Update emcommon.metrics.footprint.util.js
jpfleischer 85ad3ca
Fix end of line
jpfleischer 400431a
Simplify workflow jobs
jpfleischer f0c6af9
Add miniconda
jpfleischer e880ad8
Debug
jpfleischer 1f17500
Add architecture to platform
jpfleischer 60ff612
Elaborate on prerequisites for README
jpfleischer 462e5d6
Simplify workflow yaml
jpfleischer 37488fd
Merge branch 'master' of https://github.com/JGreenlee/e-mission-commo…
JGreenlee 27d9999
remove unneeded files/packages
JGreenlee dc5e097
Merge branch 'master' of https://github.com/JGreenlee/e-mission-commo…
JGreenlee 4a05a62
Revert "remove unit-tests.yml experiment"
JGreenlee 4316185
update README, remove unneeded notes, add GH Actions section
JGreenlee 9ef8349
make all bin/*.sh scripts executable
JGreenlee 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 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,48 @@ | ||
# taken from https://github.com/e-mission/e-mission-server/blob/master/.github/workflows/test-with-manual-install.yml | ||
|
||
name: unit-tests | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
on: | ||
push: | ||
pull_request: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test-pytest: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run setup.sh | ||
shell: bash -l {0} | ||
run: | | ||
source bin/setup.sh | ||
|
||
- name: Run pytest | ||
shell: bash -l {0} | ||
run: | | ||
source bin/run_pytest.sh | ||
|
||
test-jest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Run setup.sh | ||
shell: bash -l {0} | ||
run: | | ||
source bin/setup.sh | ||
|
||
- name: Run jest tests | ||
shell: bash -l {0} | ||
run: | | ||
source bin/run_jest.sh |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no diff here so I'm guessing you just made it executable, which is good