Skip to content

Commit

Permalink
Don't run into CI keyring errors
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Nov 5, 2024
1 parent a5e75b2 commit 6061397
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions crates/uv/tests/it/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,12 @@ fn check_keyring_behaviours() {
.arg("https://test.pypi.org/simple/")
.arg("--publish-url")
.arg("https://test.pypi.org/legacy/?ok")
.arg("../../scripts/links/ok-1.0.0-py3-none-any.whl"), @r###"
.arg("../../scripts/links/ok-1.0.0-py3-none-any.whl")
// Avoid `gi.repository.GLib.GError`
.env(
"PYTHON_KEYRING_BACKEND",
"keyrings.alt.file.PlaintextKeyring",
), @r###"
success: false
exit_code: 2
----- stdout -----
Expand All @@ -218,7 +223,12 @@ fn check_keyring_behaviours() {
.arg("subprocess")
.arg("--publish-url")
.arg("https://test.pypi.org/legacy/?ok")
.arg("../../scripts/links/ok-1.0.0-py3-none-any.whl"), @r###"
.arg("../../scripts/links/ok-1.0.0-py3-none-any.whl")
// Avoid `gi.repository.GLib.GError`
.env(
"PYTHON_KEYRING_BACKEND",
"keyrings.alt.file.PlaintextKeyring",
), @r###"
success: false
exit_code: 2
----- stdout -----
Expand All @@ -244,7 +254,12 @@ fn check_keyring_behaviours() {
.arg("https://test.pypi.org/simple/")
.arg("--publish-url")
.arg("https://test.pypi.org/legacy/?ok")
.arg("../../scripts/links/ok-1.0.0-py3-none-any.whl"), @r###"
.arg("../../scripts/links/ok-1.0.0-py3-none-any.whl")
// Avoid `gi.repository.GLib.GError`
.env(
"PYTHON_KEYRING_BACKEND",
"keyrings.alt.file.PlaintextKeyring",
), @r###"
success: false
exit_code: 2
----- stdout -----
Expand Down

0 comments on commit 6061397

Please sign in to comment.