diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..11eb345 --- /dev/null +++ b/.github/dependabot.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9026e01..8af3a5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file diff --git a/gapps/cardservice/utilities.py b/gapps/cardservice/utilities.py index 8fc6f9b..03b8a70 100644 --- a/gapps/cardservice/utilities.py +++ b/gapps/cardservice/utilities.py @@ -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): diff --git a/pyproject.toml b/pyproject.toml index 1273834..cf7515d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [