Skip to content
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
39 changes: 31 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Test Matrix

on:
#push:
#branches: [ "*" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
Expand All @@ -13,10 +11,10 @@
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
platform:
- ubuntu-latest
- macos-latest
continue-on-error: ${{ matrix.python-version == '3.6' }}

steps:
Expand All @@ -28,21 +26,46 @@
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# python -m pip install flake8 pytest ruff black
# todo: can pip install requirements from pyproject.toml?
pip install -r tests/requirements.txt
- name: Test with pytest
run: |
pytest

# For Mac & Windows with aggressive updates...
# leaning towards removing Python versions ~1year away from EOL
# and adding versions ~6months after release
# Using https://devguide.python.org/versions/ as the guide

test-mac:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: true
matrix:
python-version: ["3.12", "3.13", "3.14"]
platform:
- macos-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Test with pytest
run: |
pytest

test-windows:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
# Need windows specific reqs
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
continue-on-error: ${{ matrix.python-version == '3.6' }}
python-version: ["3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 0.14.2 (2024-06-04)
- [BUG] Fix GMC-800 history flash size #134 @anatoly-scherbakov
- Added Python 3.13 & 3.14 (pi) as supported version on PyPi

## 0.14.1 (2024-09-12)
- Added model & firmware revision (from device version) to device Discovery
- [BUG] History Parser can now handle 3 and 4 byte counts.
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pygmc"
version = "0.14.1"
version = "0.14.2"
authors = [
{name = "Thomaz"},
]
Expand All @@ -18,6 +18,8 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: System :: Hardware :: Universal Serial Bus (USB)",
Expand Down
Loading