-
Notifications
You must be signed in to change notification settings - Fork 148
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 qa/vizr…
…o_ai_ui_tests � Conflicts: � .github/workflows/vizro-qa-tests-trigger.yml � vizro-core/hatch.toml
- Loading branch information
Showing
207 changed files
with
4,911 additions
and
4,252 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 |
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.
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.
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
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 |
---|---|---|
|
@@ -34,8 +34,9 @@ repos: | |
description: Linter for json, yaml, md, css and more | ||
entry: prettier --write --ignore-unknown | ||
language: node | ||
"types": [text] | ||
types: [text] | ||
additional_dependencies: ["[email protected]"] | ||
exclude_types: [markdown] | ||
|
||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.14.0 | ||
|
@@ -44,15 +45,15 @@ repos: | |
args: [--autofix] | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.2 | ||
rev: v0.8.1 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
exclude: "vizro-core/examples/scratch_dev/app.py" | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.7.10 | ||
rev: 1.8.0 | ||
hooks: | ||
- id: bandit | ||
args: [-c, pyproject.toml, -ll] | ||
|
@@ -83,16 +84,19 @@ repos: | |
- [email protected] | ||
args: ["--fix"] | ||
|
||
- repo: https://github.com/errata-ai/vale | ||
rev: v3.8.0 | ||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.18 | ||
hooks: | ||
- id: vale | ||
args: [--config=.vale/.vale.ini] | ||
# There's no way to automatically convert vale suggestions/warnings to errors, and so they won't appear at all unless | ||
# there's an error raised. | ||
# pre-commit's verbose mode means that suggestions and warnings are always shown even if there's no error raised. | ||
# See https://github.com/errata-ai/vale/issues/575. | ||
verbose: true | ||
- id: mdformat | ||
args: | ||
[ | ||
--ignore-missing-references, | ||
--wrap=no, | ||
--align-semantic-breaks-in-lists, | ||
] | ||
exclude: ^vizro-core/docs/pages/API-reference|^vizro-ai/docs/pages/API-reference|vizro-core/docs/pages/user-guides/custom-components.md|^vizro-core/changelog.d|^vizro-ai/changelog.d | ||
additional_dependencies: | ||
- mdformat-mkdocs[recommended]==3.1.1 | ||
|
||
# Configuration for https://pre-commit.ci/. | ||
ci: | ||
|
@@ -108,4 +112,3 @@ ci: | |
- codespell | ||
- bandit | ||
- mypy | ||
- vale |
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ exceptions: | |
- LESS | ||
- LLDB | ||
- LLM | ||
- MIT | ||
- NET | ||
- NOTE | ||
- NVDA | ||
|
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ formatters | |
fsspec | ||
globals | ||
Globals | ||
interpretability | ||
Kaggle | ||
namespace | ||
namespaces | ||
|
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,4 +1,3 @@ | ||
# Contributing | ||
|
||
Contributions of all experience levels are welcome! If you're interested in making a contribution, | ||
please refer to our [contributing guide](https://vizro.readthedocs.io/en/stable/pages/explanation/contributing/) for more information. | ||
Contributions of all experience levels are welcome! If you're interested in making a contribution, please refer to our [contributing guide](https://vizro.readthedocs.io/en/stable/pages/explanation/contributing/) for more information. |
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.