-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/mckinsey/vizro into score_t…
…ests_improvements � Conflicts: � vizro-ai/hatch.toml � vizro-ai/pyproject.toml � vizro-ai/tests/e2e/data_classes.py � vizro-ai/tests/e2e/prompts.py � vizro-ai/tests/e2e/pytest.ini � vizro-ai/tests/e2e/test_dashboard.py
- Loading branch information
Showing
144 changed files
with
3,797 additions
and
2,629 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: tests for VizroAI UI | ||
|
||
defaults: | ||
run: | ||
working-directory: vizro-ai | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "vizro-ai/**" | ||
- "!vizro-ai/docs/**" | ||
|
||
env: | ||
PYTHONUNBUFFERED: 1 | ||
FORCE_COLOR: 1 | ||
PYTHON_VERSION: "3.12" | ||
|
||
jobs: | ||
test-vizro-ai-ui-fork: | ||
if: ${{ github.event.pull_request.head.repo.fork }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Passed fork step | ||
run: echo "Success!" | ||
|
||
test-vizro-ai-ui: | ||
if: ${{ ! github.event.pull_request.head.repo.fork }} | ||
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 VizroAI UI tests | ||
run: hatch run test-vizro-ai-ui | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} | ||
|
||
- name: Send custom JSON data to Slack | ||
id: slack | ||
uses: slackapi/[email protected] | ||
if: failure() | ||
with: | ||
payload: | | ||
{ | ||
"text": "VizroAI UI tests build result: ${{ job.status }}\nBranch: ${{ github.head_ref }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |
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,59 @@ | ||
name: Update Material Icons | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" # Runs at midnight on the 1st of every month | ||
|
||
defaults: | ||
run: | ||
working-directory: vizro-core | ||
|
||
env: | ||
PYTHON_VERSION: "3.12" | ||
|
||
jobs: | ||
check-update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Install Hatch | ||
run: pip install hatch | ||
- name: Update Material font | ||
run: | | ||
hatch run update-icons | ||
- name: Check for changes | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Vizro Team" | ||
git diff --exit-code || echo "has_changes=true" >> $GITHUB_ENV | ||
update-icons: | ||
runs-on: ubuntu-latest | ||
needs: [check-update] | ||
if: | | ||
env.has_changes == 'true' | ||
steps: | ||
- name: Delete old branch if exists | ||
run: | | ||
git push origin --delete bot/update-material-icons || true | ||
- name: Create and push changes | ||
run: | | ||
git checkout -b bot/update-material-icons | ||
hatch run changelog:add | ||
git add -A | ||
git commit -m "Update Material Icons" | ||
git push --set-upstream origin bot/update-material-icons | ||
- name: Install GitHub CLI | ||
run: sudo apt-get install -y gh | ||
- name: Create Pull Request | ||
run: | | ||
gh pr create -B main -H bot/update-material-icons --title "[Bot] Update Material Icons" --body "Automated update of Material Icons" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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.