Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub actions Tox tests #86

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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