-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
717 additions
and
654 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
.github/actions/failed-artifacts-and-slack-notifications/action.yml
This file contains 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,31 @@ | ||
name: "Create artifacts and slack notifications" | ||
description: "Creates failed artifacts with screenshots and sends slack notifications if build failed" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Copy failed screenshots | ||
shell: bash | ||
run: | | ||
mkdir /home/runner/work/vizro/vizro/vizro-core/failed_screenshots/ | ||
cd /home/runner/work/vizro/vizro/vizro-core/ | ||
cp *.png failed_screenshots | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Failed screenshots | ||
path: | | ||
/home/runner/work/vizro/vizro/vizro-core/failed_screenshots/*.png | ||
- name: Send custom JSON data to Slack | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "${{ env.TESTS_NAME }} build result: ${{ job.status }}\nBranch: ${{ github.head_ref }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |
45 changes: 45 additions & 0 deletions
45
.github/workflows/test-e2e-component-library-vizro-core.yml
This file contains 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,45 @@ | ||
name: e2e tests of component library for Vizro | ||
|
||
defaults: | ||
run: | ||
working-directory: vizro-core | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
PYTHONUNBUFFERED: 1 | ||
FORCE_COLOR: 1 | ||
PYTHON_VERSION: "3.12" | ||
|
||
jobs: | ||
test-e2e-component-library-vizro-core: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Install Hatch | ||
run: pip install hatch | ||
|
||
- name: Show dependency tree | ||
run: hatch run pip tree | ||
|
||
- name: Run e2e component library tests | ||
run: hatch run test-e2e-component-library | ||
|
||
- name: Create artifacts and slack notifications | ||
if: failure() | ||
uses: ./.github/actions/failed-artifacts-and-slack-notifications | ||
env: | ||
TESTS_NAME: Vizro e2e component library tests | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains 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 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 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
gunicorn | ||
vizro-ai>=0.3.2 | ||
vizro==0.1.28 | ||
black | ||
openpyxl | ||
langchain_anthropic | ||
|
This file contains 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 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.