Skip to content

Commit d557f26

Browse files
committed
debug CI
1 parent 39da5ec commit d557f26

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
4949
5050
- name: Run tests
5151
env:
52-
GIT2CPP_TEST_PRIVATE_TOKEN: ${{ secrets.GIT2CPP_TEST_PRIVATE_TOKEN }}
52+
#GIT2CPP_TEST_PRIVATE_TOKEN: ${{ secrets.GIT2CPP_TEST_PRIVATE_TOKEN }}"
53+
GIT2CPP_TEST_PRIVATE_TOKEN: "ZZZZZ_${{ secrets.GIT2CPP_TEST_PRIVATE_TOKEN }}_XXXXX"
5354
run: |
54-
pytest -v
55+
env | sort
56+
pytest -v -rP
5557
5658
coverage:
5759
name: 'Test coverage'

test/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ 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+
print(f"TOKEN {token}")
80+
assert token.startswith("github_pat")
7981
repo_name = "git2cpp-test-private"
8082
org_name = "QuantStack"
8183
return {

0 commit comments

Comments
 (0)