Skip to content

Commit

Permalink
Merge pull request #2 from skoudoro/update-ci
Browse files Browse the repository at this point in the history
Add 3.12 test in the CI
  • Loading branch information
skoudoro committed Jan 9, 2024
2 parents d25bda9 + a54e772 commit bbb5380
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
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

0 comments on commit bbb5380

Please sign in to comment.