Skip to content

Commit

Permalink
Plot visualisation
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Feb 24, 2025
1 parent 5ece77b commit d7a096d
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/compare-regdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ jobs:
run: |
curl -s https://raw.githubusercontent.com/atharva-2001/tardis-regression-data/refs/heads/update_notebook/compare.py > compare.py
working-directory: ${{ github.workspace }}/tardis-regression-data

- name: Add environment variable to save plots
run: |
echo "SAVE_COMP_IMG=1" >> $GITHUB_ENV
- name: Run comparison notebook
run: |
Expand All @@ -110,7 +114,10 @@ jobs:
with:
name: compare_regression_data_${{ github.sha }}_${{ matrix.continuum }}_${{ matrix.os }}.html
include-hidden-files: true
path: ${{ github.workspace }}/tardis-regression-data/compare_regression_data_${{ github.sha }}_${{ matrix.continuum }}_${{ matrix.os }}.html
path: |
${{ github.workspace }}/tardis-regression-data/compare_regression_data_${{ github.sha }}_${{ matrix.continuum }}_${{ matrix.os }}.html
${{ github.workspace }}/tardis-regression-data/comparison_plots*

deploy-comparison:
needs: tests
Expand Down Expand Up @@ -151,7 +158,7 @@ jobs:
id: fc
with:
issue-number: ${{ github.event.number }}
body-includes: Regression data comparison results
body-includes: Regression Data Comparison Results

- name: Post comment
uses: peter-evans/create-or-update-comment@v2
Expand All @@ -170,6 +177,20 @@ jobs:
- [Ubuntu (not continuum)](https://tardis-sn.github.io/reg-data-comp/pull/${{ github.event.number }}/compare_regression_data_${{ github.sha }}_not_ubuntu-latest.html/compare_regression_data_${{ github.sha }}_not_ubuntu-latest.html)
- [Ubuntu (continuum)](https://tardis-sn.github.io/reg-data-comp/pull/${{ github.event.number }}/compare_regression_data_${{ github.sha }}__ubuntu-latest.html/compare_regression_data_${{ github.sha }}__ubuntu-latest.html)
<details>
<summary>📊 View Comparison Plots</summary>
### Spectrum Comparison
![Spectrum Comparison](https://tardis-sn.github.io/reg-data-comp/pull/${{ github.event.number }}/comparison_plots/spectrum.png)
### Same Name Differences
![Same Name Differences](https://tardis-sn.github.io/reg-data-comp/pull/${{ github.event.number }}/comparison_plots/same_name_diff.png)
### Key Differences
![Key Differences](https://tardis-sn.github.io/reg-data-comp/pull/${{ github.event.number }}/comparison_plots/diff_keys.png)
</details>
You can also download the artifacts directly from the [Actions tab](${{ env.ARTIFACT_URL }}).
env:
ARTIFACT_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 comments on commit d7a096d

Please sign in to comment.