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: make integration test fail in ci and fix ssh issue #1301

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions examples/pypi-source-deps/pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions examples/pypi-source-deps/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ python = "*"

rich = "~=13.7"
# Lets start with some git dependencies
# With ssh
flask = { git = "ssh://git@github.com/pallets/flask" }
# With ssh: (you need to have the correct ssh keys setup for which I (ruben) am to lazy to set up correctly)
# flask = { git = "ssh://git@github.com/pallets/flask" }

# With https
flask = { git = "https://github.com/pallets/flask" }
requests = { git = "https://github.com/psf/requests.git", rev = "0106aced5faa299e6ede89d1230bd6784f2c3660" }
# TODO: will support later -> or use branch = '' or tag = '' to specify a branch or tag

Expand Down
5 changes: 3 additions & 2 deletions examples/pypi-source-deps/test/test_imports.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from importlib.metadata import version

from importlib.util import find_spec
def test_flask():
assert version("flask") == "3.0.2"
# Don't test version, as it may change over time with lock file updates
assert find_spec("flask") is not None

def test_rich():
assert version("rich").split(".")[0] == "13"
Expand Down
1 change: 1 addition & 0 deletions tests/test_examples.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Run from the root of the project using `bash tests/test_examples.sh`
set -e
echo "Running test_examples.sh"

echo "Running the polarify example:"
Expand Down
Loading