Skip to content

Commit

Permalink
Merge pull request #86 from gene1wood/update-github-actions
Browse files Browse the repository at this point in the history
Update GitHub actions Tox tests
  • Loading branch information
gene1wood authored Jun 24, 2024
2 parents 2ced3c4 + 6db6a01 commit f591801
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '2.7', '3.7' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions agithub/GitHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def request(self, method, url, bodyData, headers):
self.sleep_until_more_ratelimit()
else:
data = content.processBody()
if self.paginate and type(data) == list:
if self.paginate and type(data) is list:
data.extend(
self.get_additional_pages(method, bodyData, headers))
return status, data
Expand All @@ -129,7 +129,7 @@ def get_additional_pages(self, method, bodyData, headers):
'{}'.format(url))

status, data = self.request(method, url, bodyData, headers)
if type(data) == list:
if type(data) is list:
data.extend(self.get_additional_pages(method, bodyData, headers))
return data
elif (status == 403 and self.no_ratelimit_remaining()
Expand Down
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[tox]
envlist = py27, py37, flake8
envlist = py38, py39, py310, py311, py312, flake8

[gh-actions]
python =
2.7: py27
3.7: py37, flake8
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, flake8

[testenv:flake8]
basepython = python
Expand Down

0 comments on commit f591801

Please sign in to comment.