File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments