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

Add 3.12 test in the CI #2

Merged
merged 3 commits into from
Jan 9, 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
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,26 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
python-version: [3.9, '3.10', 3.11]
python-version: [3.9, '3.10', 3.11, 3.12]
os: [ubuntu-latest, macos-latest, windows-latest]


steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install the package and its dependencies
run: |
python -m pip install --upgrade pip
pip install .[docs,test,demo]
- name: Check Dependencies
run: |
pipconflictchecker
pip install .
- name: Lint
run: |
pip install flake8
flake8 .
- name: Test
run: |
pip install pytest
cd && mkdir for_test && cd for_test && pytest -svv --pyargs gapps --durations=0
4 changes: 3 additions & 1 deletion gapps/cardservice/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def floats2hex(rgb):
"""Takes an RGB tuple or list and returns a hex RGB string."""
if not rgb or not isinstance(rgb, (tuple, list)):
return None
return f'#{int(rgb[0]*255):02x}{int(rgb[1]*255):02x}{int(rgb[2]*255):02x}'
str_hex = f'#{int(rgb[0] * 255):02x}{int(rgb[1] * 255):02x}'
str_hex += f'{int(rgb[2] * 255):02x}'
return str_hex


def get_form_value(form, key):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

dependencies = [
Expand Down