mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-10-19 22:23:53 -07:00
Add ability to compare scores (#2172)
* Add ability to perform score comparisons, and include that ability in github action * Update version of add-pr-comment * Update code with black * Update comparator.py * Fix message-path and remove extra parameter * Update the text to be a bit more friendly and easy to read
This commit is contained in:
parent
a49770038d
commit
79c223b646
2 changed files with 183 additions and 1 deletions
10
.github/workflows/deploy_be_staging.yml
vendored
10
.github/workflows/deploy_be_staging.yml
vendored
|
@ -72,7 +72,6 @@ jobs:
|
|||
run: |
|
||||
poetry run s4cmd put ./data_pipeline/data/score/csv/ s3://justice40-data/data-pipeline-staging/${{env.PR_NUMBER}}/${{env.SHA_NUMBER}}/data/score/csv --recursive --force --API-ACL=public-read
|
||||
poetry run s4cmd put ./data_pipeline/files/ s3://justice40-data/data-pipeline-staging/${{env.PR_NUMBER}}/${{env.SHA_NUMBER}}/data/score/downloadable --recursive --force --API-ACL=public-read
|
||||
|
||||
- name: Update PR with deployed Score URLs
|
||||
uses: mshick/add-pr-comment@v1
|
||||
with:
|
||||
|
@ -85,6 +84,15 @@ jobs:
|
|||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token-user-login: "github-actions[bot]"
|
||||
allow-repeats: false
|
||||
- name: Perform Score Comparisons
|
||||
run: |
|
||||
poetry run python3 data_pipeline/comparator.py compare-score
|
||||
- name: Update PR with Score Comparisons
|
||||
uses: mshick/add-pr-comment@v2
|
||||
with:
|
||||
message-path: ./data/data-pipeline/data_pipeline/data/tmp/Comparator/Score/comparison-summary.md
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
allow-repeats: false
|
||||
- name: Set timezone for tippecanoe
|
||||
uses: szenius/set-timezone@v1.0
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue