Skip to content

Commit

Permalink
Merge pull request #7 from CMUSTRUDEL/dev
Browse files Browse the repository at this point in the history
ci: fix release.yml
  • Loading branch information
user2589 authored Jul 25, 2020
2 parents a3a38aa + f6efcad commit 6f465d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
ref: gh-pages
path: docs/build/html
- name: GitHub pages
- run: |
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx-autobuild
sphinx-build -M html "docs" "docs/build"
make html
cd docs/build/html
git config user.name github-actions
git config user.email [email protected]
cd docs/build/html
git add .
git commit -m "github pages"
git push
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: [2.7, 3.6, 3.7, 3.8]
python-version: [2.7, 3.6, 3.8]

steps:
- uses: actions/checkout@v2
Expand All @@ -30,9 +30,10 @@ jobs:
- name: Install dependencies (Python ${{ matrix.python-version }})
run: |
python -m pip install --upgrade pip
pip install typing
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests on Python ${{ matrix.python-version }}
env:
GITHUB_API_TOKENS: ${{ secrets.GH_API_TOKENS }}
GITHUB_API_TOKENS: ${{ secrets.GH_TOKENS }}
run: make test
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ REST (v3) API
-------------
.. autoclass:: GitHubAPI
:members:
:exclude-members:
:exclude-members: token_class

GraphQL (v4) API
----------------
Expand Down
3 changes: 2 additions & 1 deletion stscraper/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ def issue_events(self, repo, issue_no):
@staticmethod
def project_exists(repo_slug):
"""Check if the project exists.
This is a slightly cheaper alternative to getting repository info.
This is a slightly cheaper alternative to getting repository info. It
does not using API keys.
"""
for i in range(5):
try:
Expand Down

0 comments on commit 6f465d6

Please sign in to comment.