-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Graphql implementation of the repo StargazersStream (#123)
Co-authored-by: Laurent Savaete <[email protected]>
- Loading branch information
1 parent
38215c7
commit 44564b2
Showing
7 changed files
with
195 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
name: Test tap-github | ||
|
||
on: | ||
# Run on all pull requests and on pushes to master. | ||
# Run on all pull requests and on pushes to main. | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
|
@@ -26,13 +30,11 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
# must match the path in tests/__init__.py | ||
path: '**/api_calls_tests_cache.sqlite' | ||
path: 'api_calls_tests_cache.sqlite' | ||
# github cache expires after 1wk, and we expire the content after 24h | ||
# this key should not need to change unless we need to clear the cache | ||
key: api-cache-v3 | ||
restore-keys: | | ||
api-cache-v3 | ||
api-cache- | ||
restore-keys: api-cache-v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
@@ -61,5 +63,13 @@ jobs: | |
run: | | ||
poetry run mypy . --ignore-missing-imports | ||
- name: Test with pytest | ||
id: test_pytest | ||
continue-on-error: true | ||
run: | | ||
poetry run pytest --capture=no | ||
- name: Test with pytest (run 2) | ||
id: retry_test_pytest | ||
if: steps.test_pytest.outcome=='failure' # check the step outcome, wait and retry | ||
run: | | ||
sleep 60m | ||
poetry run pytest --capture=no |
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
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
Oops, something went wrong.