Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Windows paths #837

Merged
merged 34 commits into from
Oct 30, 2024
Merged

[Fix] Windows paths #837

merged 34 commits into from
Oct 30, 2024

Conversation

antonymilne
Copy link
Contributor

@antonymilne antonymilne commented Oct 29, 2024

Description

Fixes #836.

I removed our Windows tests nearly a year ago in #192. This was a great idea until something just broke on Windows and we didn't realise...

The Windows tests are much slower than Linux and still quite low value since there are very few things that could break on Windows without breaking it on Linux too. So we run these Windows tests only on merge to main.

The fix here was very straightforward but getting it to work on GitHub actions very painful 😬

Notice

  • I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

    • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
    • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
    • I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
    • I have not referenced individuals, products or companies in any commits, directly or indirectly.
    • I have not added data or restricted code in any commits, directly or indirectly.

Copy link
Contributor

github-actions bot commented Oct 29, 2024

View the example dashboards of the current commit live on PyCafe ☕ 🚀

Updated on: 2024-10-29 21:34:03 UTC
Commit: 3364a69

Link: vizro-core/examples/dev/

Link: vizro-core/examples/scratch_dev

Link: vizro-core/examples/visual-vocabulary/

@github-actions github-actions bot added the Vizro-AI 🤖 Issue/PR that addresses Vizro-AI package label Oct 29, 2024
Comment on lines +130 to +133
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
VIZRO_TYPE: pypi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @l0uden this is a better way to define environment variables in GHA because it works on all OS.

Comment on lines +137 to +138
hatch run ${{ matrix.config.hatch-env }}:pip install ../vizro-core
hatch run ${{ matrix.config.hatch-env }}:test-integration
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @l0uden I tidied this up by just installing vizro-core directly - no need to build it first.

Copy link
Contributor

@petar-qb petar-qb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for solving this! The PR looks good 👍

vizro-core/src/vizro/_vizro.py Show resolved Hide resolved
vizro-core/src/vizro/__init__.py Show resolved Hide resolved
@antonymilne antonymilne merged commit 5ad5eef into main Oct 30, 2024
43 checks passed
@antonymilne antonymilne deleted the fix/windows-paths branch October 30, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vizro-AI 🤖 Issue/PR that addresses Vizro-AI package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"vizro" is registered but the path requested is not valid.
3 participants