Skip to content

Commit

Permalink
fix reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
l0uden committed Oct 31, 2024
1 parent 145ad22 commit aafb3d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 46 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/test-integration-vizro-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,47 +154,3 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

- name: Report artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Report-${{ matrix.config.python-version }}-${{ matrix.config.label }}
path: |
/home/runner/work/vizro/vizro/vizro-ai/tests/integration/reports/report*.csv
test-integration-vizro-ai-report:
needs: test-integration-vizro-ai
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Download All Artifacts
uses: actions/download-artifact@v4

- name: Set current date as env variable
id: date
run: |
echo "::set-output name=date::$(date +'%Y-%m-%dT%H-%M-%S')"
echo "TIME_NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV
- name: Create one csv report
run: |
cd /home/runner/work/vizro/vizro/
head -n 1 Report-3.11-/report_model_gpt-4o-mini_pypi.csv > report-aggregated-${{ steps.date.outputs.date }}.csv && tail -n+2 -q */*.csv >> report-aggregated-${{ steps.date.outputs.date }}.csv
gawk -F, -i inplace 'FNR>1 {$1="${{ steps.date.outputs.date }}"} {print}' OFS=, report-aggregated-${{ steps.date.outputs.date }}.csv
- name: Report artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Report-aggregated-${{ steps.date.outputs.date }}
path: |
/home/runner/work/vizro/vizro/report-aggregated-${{ steps.date.outputs.date }}.csv
- name: Upload reports to artifactory
run: |
cd /home/runner/work/vizro/vizro/
curl -fL https://getcli.jfrog.io | sh
./jfrog config add vizro --artifactory-url ${{ secrets.ARTIFACTORY_URL}} --user ${{ secrets.ARTIFACTORY_USER}} --apikey ${{ secrets.ARTIFACTORY_PASS}} --interactive=false
./jfrog rt u --flat=false "report-aggregated-${{ steps.date.outputs.date }}.csv" vizx-generic-local/vizro-ai-reports/
4 changes: 2 additions & 2 deletions .github/workflows/test-score-vizro-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
VIZRO_TYPE: pypi
BRANCH: ${{ github.head_ref }}
PYTHON_VERSION: ${{ matrix.python-version }}
PYTHON_VERSION: ${{ matrix.config.python-version }}

- name: Run vizro-ai score tests with local vizro
run: |
Expand All @@ -111,7 +111,7 @@ jobs:
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
VIZRO_TYPE: local
BRANCH: ${{ github.head_ref }}
PYTHON_VERSION: ${{ matrix.python-version }}
PYTHON_VERSION: ${{ matrix.config.python-version }}

- name: Send custom JSON data to Slack
id: slack
Expand Down

0 comments on commit aafb3d6

Please sign in to comment.