Skip to content

Commit 46f917c

Browse files
committed
debug CI
1 parent 39da5ec commit 46f917c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
GIT2CPP_TEST_PRIVATE_TOKEN: ${{ secrets.GIT2CPP_TEST_PRIVATE_TOKEN }}
5353
run: |
54-
pytest -v
54+
pytest -v -rP
5555
5656
coverage:
5757
name: 'Test coverage'

src/utils/credentials.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ int user_credentials(
2222
if (username.empty()) {
2323
username = prompt_input("Username: ");
2424
}
25+
26+
std::cout << "XXXX username " << username.size() << " " << username.c_str() << " XXXX" << std::endl;
27+
2528
if (username.empty()) {
2629
giterr_set_str(GIT_ERROR_HTTP, "No username specified");
2730
return GIT_EAUTH;
2831
}
2932

3033
std::string password = prompt_input("Password: ", false);
34+
35+
std::cout << "YYYY password " << password.size() << " " << " YYYY" << std::endl;
36+
3137
if (password.empty()) {
3238
giterr_set_str(GIT_ERROR_HTTP, "No password specified");
3339
return GIT_EAUTH;

test/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ def private_test_repo():
7373
# Fixture containing everything needed to access private github repo.
7474
# GIT2CPP_TEST_PRIVATE_TOKEN is the fine-grained Personal Access Token for private test repo.
7575
# If this is not available as an environment variable, tests that use this fixture are skipped.
76-
token = os.getenv('GIT2CPP_TEST_PRIVATE_TOKEN')
76+
token = os.getenv("GIT2CPP_TEST_PRIVATE_TOKEN")
7777
if token is None:
7878
pytest.skip("No token for private test repo GIT2CPP_TEST_PRIVATE_TOKEN")
79+
assert token.startswith("github_pat")
7980
repo_name = "git2cpp-test-private"
8081
org_name = "QuantStack"
8182
return {

0 commit comments

Comments
 (0)