-
Notifications
You must be signed in to change notification settings - Fork 3
Automated comment on GitHub Pull Requests #78
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
Changes from all commits
Commits
Show all changes
132 commits
Select commit
Hold shift + click to select a range
8611da0
testing automated comments on PRs
mogres 4c43fad
add baseline for packing bias test
mogres 94b00ac
formatting workflow file
mogres aa70ff1
try adding image as comment
mogres 232e823
adding recipe and config file for test packing
mogres 94d8185
install all dependencies
mogres 7526fb5
adding updated python version to workflow
mogres 61f07ef
updating log file path
mogres fc39b2c
updating log file path
mogres c622b29
updating log file path
mogres 368efdf
fixing merge conflicts
mogres 4ec2f57
updating log file path
mogres 3a56382
print log file path
mogres 23e97a5
add working directory to workflow
mogres 7871a16
add pwd to workflow
mogres d38cfd1
try changing working directory
mogres 90b2606
add cd before pack command
mogres 7bf98e7
fix workflow file to remove duplicate run command
mogres d3631c6
printing out __file__
mogres 05d089e
activate conda environment in yml
mogres 59cdba6
add conda init statement
mogres 904a7f0
remove troubleshooting statement
mogres d4357fd
adding package data to setup.py
mogres b19f810
typo
meganrm d63c449
make config optional
meganrm d3b25b3
[wip] - download file structurre
meganrm 2f213a0
Update analyze.yml
meganrm ccac0ea
Update analyze.yml
meganrm cdff90c
Update analyze.yml
meganrm ef2af42
Update analyze.yml
meganrm f27d2a5
testing logger config location
meganrm 07854f7
testing
meganrm 6bcd777
using config file
meganrm aa07bca
change output
meganrm aafa109
comment
meganrm 53f12b3
Update analyze.yml
meganrm 9dedec6
Update analyze.yml
meganrm f452145
Update analyze.yml
meganrm 3fd79c9
Update analyze.yml
meganrm 8501044
Update analyze.yml
meganrm 111cd2e
Update analyze.yml
meganrm 545873e
Update analyze.yml
meganrm 7f55273
Update analyze.yml
meganrm f015b5b
Update analyze.yml
meganrm 7fb06d1
Update analyze.yml
meganrm 92c0564
format
meganrm 3b1a1e3
dry out code
meganrm 3159eb5
Update analyze.yml
meganrm ca48677
Update analyze.yml
meganrm dc6248b
Update analyze.yml
meganrm aefaf9e
Update analyze.yml
meganrm 16d89ed
Update ci.yml
meganrm 0119787
Update analyze.yml
meganrm 918c26e
Update analyze.yml
meganrm a7581fa
Update analyze.yml
meganrm 5e14b44
Update analyze.yml
meganrm 105e4e4
Update analyze.yml
meganrm e68beda
Update analyze.yml
meganrm a1a7595
delete file
meganrm a79b6b0
fix test for running on actions
meganrm 0c64e87
fix path for test data
meganrm 55bcd7d
delint
meganrm 0298266
fix format version
meganrm 0244cf7
Merge branch 'main' of https://github.com/mesoscope/cellpack into fea…
mogres 0173f10
Merge branch 'feature/fire-analyze' of https://github.com/mesoscope/c…
mogres 0ddf2da
analyze gradients with peroxisomes
mogres 07ef99e
WIP: analyses on gradient packings
mogres 717031e
Merge branch 'feature/gradients' of github.com:mesoscope/cellpack int…
mogres 557c7ab
running radial gradient test
mogres eeb610f
Merge branch 'main' of github.com:mesoscope/cellpack into feature/per…
mogres 2eabe58
saving surface distances to grid file
mogres ff1d817
streamline analysis loop, update gradient analyses
mogres 4ec082b
updating test gradient recipe
mogres 4b5c48f
updating analysis workflow to set similarity values
mogres a199d71
ignore test outputs, add analysis config
mogres f691e7c
calculate average similarity values between packings
mogres 1c11028
changing filename in ioutils
mogres 38f66e1
Merge branch 'feature/gradients' of github.com:mesoscope/cellpack int…
mogres b0659d7
Merge branch 'feature/gradients' of github.com:mesoscope/cellpack int…
mogres 9a8ad87
use trimesh proximity to calculate surface distances
mogres d9ec584
remove surface points from saved grid file
mogres eae7503
removed list conversion for `seed_distances`
mogres d093238
Merge branch 'main' of github.com:mesoscope/cellpack into feature/gra…
mogres cb1b8a6
remove unneeded function argument
mogres 42e7014
format
mogres 315c474
Merge branch 'main' of github.com:mesoscope/cellpack into feature/aut…
mogres 866e68c
install all requirements for testing
mogres 2677fc9
update path to logger config
mogres 69e2a7a
updated test recipes
mogres fc2a2ae
Merge branch 'feature/gradient_analysis' of github.com:mesoscope/cell…
mogres 8acc3c0
convert numpy array to list before writing to JSON
mogres 7c7f677
add mdutils to requirements
mogres c949493
create analysis report through workflow
mogres adefff8
update analysis workflow to only use analysis config
mogres 8fdc600
update ci workflow
mogres de7ebfb
update cml command
mogres f7b9384
update path to analysis report
mogres aa10786
remove packing bias test
mogres 947d096
add image through workflow directly
mogres 703d057
update deprecated publish method
mogres 6e41e4e
update paths for image and report
mogres 21db186
look for image in local github file structure
mogres ba2323f
update path to image file in config
mogres f971245
print paths to distance distribution image
mogres fe99691
add debug statement in workflow
mogres 641fb1c
fix analysis ci workflow
mogres 802af8f
fix debug statements, use direct path to results image
mogres 220576e
add packing image, plot distance between ingredients
mogres 0d7d7d9
format
mogres 3318bc0
try full path to image
mogres 79a0acb
update previous comment instead of adding a new one
mogres 15bbdae
update error message, try cml publish comment
mogres 691bfd8
fix path to image file
mogres 3afbb87
rearrange workflow; update path to results
mogres be653a0
reorder workflow
mogres fbbd46e
try showing contents of folder earlier
mogres e75665d
try showing folder contents earlier
mogres a051c63
revert to original workflow
mogres 7664814
revert analysis config
mogres 79f3389
use github results path in output report
mogres cc94a1b
use numpy for sphere distance calcs, fix function input, fix 2d plot …
mogres c368bcf
update formatting of report
mogres efb0bce
Merge branch 'main' of github.com:mesoscope/cellpack into feature/aut…
mogres b191693
try to fix linting issues
mogres b165d00
formatting
mogres bdc74bc
upload to aws
meganrm 53d363a
dont double checkout
meganrm 625affb
remove log statement
meganrm d62bb07
reference aws bucket
meganrm a4db393
Merge branch 'main' into feature/automated_test
meganrm fdce425
remove duplicate entry from gitignore
mogres fdc5348
* move imports to top of the file
mogres 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,51 @@ | ||
| name: Analyze | ||
|
|
||
| on: push | ||
|
|
||
| jobs: | ||
| Analyze: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| python-version: [3.9] | ||
| os: [ubuntu-latest] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install Dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install .[all] | ||
| - name: Pack test recipe | ||
| run: | | ||
| pack -r cellpack/tests/recipes/test_spheres.json -c cellpack/tests/packing-configs/test_config.json | ||
| analyze -a cellpack/tests/analysis-configs/PR_analysis_config.json | ||
| - name: Upload results | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: results | ||
| path: cellpack/tests/outputs/test_spheres/ | ||
| Comment: | ||
| runs-on: ubuntu-latest | ||
| needs: [Analyze] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Configure AWS credentials | ||
| uses: aws-actions/configure-aws-credentials@v1-node16 | ||
| with: | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| aws-region: us-west-2 | ||
| - uses: actions/download-artifact@v3 | ||
| - name: Copy files to results bucket | ||
| run: aws s3 sync ./results s3://cellpack-results --delete | ||
| - uses: iterative/setup-cml@v1 | ||
| - name: Update comment | ||
| env: | ||
| REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| cml comment update --watermark-title="{workflow} report" ./results/analysis_report.md --pr | ||
| cat ./results/analysis_report.md |
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 was deleted.
Oops, something went wrong.
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,10 @@ | ||
| { | ||
| "version": "1.0.0", | ||
| "format_version": "1.0", | ||
| "input_path": "out/gradients_X/jitter/", | ||
| "output_path": "out/gradients_X/", | ||
| "ingredient_key" : "ext_A", | ||
| "run_similarity_analysis": true, | ||
| "save_plots": true, | ||
| "max_plots_to_save": 1 | ||
| } | ||
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.
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.
TODO: formalize the analysis config options and add default settings for all of them