-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow a PAT still to be configured to avoid rate limiting (#3785)
Unauthenticated GitHub API calls are more heavily rate limited. Passing a token will allow a greater number of requests to be made. This restores the PAT utility code, but tries to use the default github.token now that ark and positron repositories are public, avoiding the need for secrets in PR workflows. Follow-up to #3739
- Loading branch information
1 parent
56e6ef4
commit c51f172
Showing
5 changed files
with
331 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -372,6 +372,7 @@ jobs: | |
env: | ||
TEST_FILES_SUFFIX: testvirtualenvs | ||
CI_PYTHON_VERSION: ${{ matrix.python }} | ||
POSITRON_GITHUB_PAT: ${{ github.token }} | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: yarn testSingleWorkspace | ||
|
@@ -381,6 +382,7 @@ jobs: | |
- name: Run single-workspace tests | ||
env: | ||
CI_PYTHON_VERSION: ${{ matrix.python }} | ||
POSITRON_GITHUB_PAT: ${{ github.token }} | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: yarn testSingleWorkspace | ||
|
@@ -390,6 +392,7 @@ jobs: | |
- name: Run debugger tests | ||
env: | ||
CI_PYTHON_VERSION: ${{ matrix.python }} | ||
POSITRON_GITHUB_PAT: ${{ github.token }} | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: yarn testDebugger | ||
|
@@ -401,5 +404,7 @@ jobs: | |
if: matrix.test-suite == 'functional' | ||
|
||
- name: Run smoke tests | ||
env: | ||
POSITRON_GITHUB_PAT: ${{ github.token }} | ||
run: yarn tsc && node ./out/test/smokeTest.js | ||
if: matrix.test-suite == 'smoke' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.