diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 945a89d..d4e921b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,6 @@ name: Test Matrix on: - #push: - #branches: [ "*" ] pull_request: branches: [ "master" ] workflow_dispatch: @@ -13,10 +11,10 @@ jobs: 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: @@ -28,8 +26,34 @@ jobs: - 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: | @@ -41,8 +65,7 @@ jobs: 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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fdcb7c..910df07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/pyproject.toml b/pyproject.toml index c9b3528..b7066c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pygmc" -version = "0.14.1" +version = "0.14.2" authors = [ {name = "Thomaz"}, ] @@ -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)",