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:
Travis Newby 2023-02-21 16:50:31 -06:00 committed by GitHub
commit 79c223b646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 183 additions and 1 deletions

View file

@ -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: