diff --git a/.github/workflows/python-latest.yml b/.github/workflows/python-latest.yml index 90677ae..0383a5b 100644 --- a/.github/workflows/python-latest.yml +++ b/.github/workflows/python-latest.yml @@ -7,17 +7,33 @@ on: branches: [ main ] jobs: - # Define the job to run before your matrix job + # -------------------------------------------------------- + # Collect available Python versions + # -------------------------------------------------------- get-python-versions: runs-on: ubuntu-latest outputs: - python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }} + python-matrix: ${{ steps.trim.outputs.matrix }} steps: - - uses: snok/latest-python-versions@v1 - id: get-python-versions-action - with: - min-version: '3.12' + - uses: snok/latest-python-versions@v1 + id: get-python-versions-action + with: + min-version: '3.12' + + # 👇 keep only major.minor and remove duplicates + - name: Keep only major.minor + id: trim + shell: bash + run: | + versions='${{ steps.get-python-versions-action.outputs.latest-python-versions }}' + # → ["3.13.5","3.12.11", ...] + matrix=$(echo "$versions" \ + | jq -c 'map(split(".")[:2] | join(".")) | unique') + echo "matrix=$matrix" >> "$GITHUB_OUTPUT" + # -------------------------------------------------------- + # Use the trimmed versions list in matrix + # -------------------------------------------------------- test: needs: [get-python-versions] runs-on: ${{ matrix.operating-system }} @@ -25,7 +41,6 @@ jobs: matrix: operating-system: [ ubuntu-latest, windows-latest, macOS-latest ] python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} - continue-on-error: true steps: diff --git a/README.md b/README.md index 7a51c41..ce0af34 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/) - API version: 4.0 -- Package version: 25.5.0 +- Package version: 25.6.0 ## SDK and API Version Compatibility: diff --git a/aspose_barcode_cloud/api_client.py b/aspose_barcode_cloud/api_client.py index 400603b..8823962 100644 --- a/aspose_barcode_cloud/api_client.py +++ b/aspose_barcode_cloud/api_client.py @@ -60,13 +60,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook self.rest_client = RESTClientObject(configuration) self.default_headers = { "x-aspose-client": "python sdk", - "x-aspose-client-version": "25.5.0", + "x-aspose-client-version": "25.6.0", } if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "Aspose-Barcode-SDK/25.5.0/python" + self.user_agent = "Aspose-Barcode-SDK/25.6.0/python" def __del__(self): self.rest_client.close() diff --git a/aspose_barcode_cloud/configuration.py b/aspose_barcode_cloud/configuration.py index 6a1c536..e4cb0d8 100644 --- a/aspose_barcode_cloud/configuration.py +++ b/aspose_barcode_cloud/configuration.py @@ -258,7 +258,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 4.0\n" - "SDK Package Version: 25.5.0".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 25.6.0".format(env=sys.platform, pyversion=sys.version) ) @staticmethod diff --git a/setup.py b/setup.py index c72ccc7..ca16bac 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages NAME = "aspose-barcode-cloud" -VERSION = "25.5.0" +VERSION = "25.6.0" # To install the library, run the following # # python setup.py install