ci: update test job to use matrix strategy for multiple Python versions and switch to conda setup

fix: specify type for headers parameter in execute_transaction_request
fix: specify type for transaction_data parameter in process_transaction
deps: update tonutils dependency version to 2.0.5
This commit is contained in:
bohd4nx
2026-04-07 00:52:39 +03:00
parent d4ac44f698
commit 503baa9a94
4 changed files with 21 additions and 10 deletions
+18 -7
View File
@@ -27,21 +27,32 @@ jobs:
- run: ruff check . && black --check . --target-version py312 && mypy pyfragment
test:
name: Tests
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
COOKIES_JSON: ${{ secrets.COOKIES_JSON }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-python@v6.2.0
- name: Set up conda (Miniconda)
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: pyfragment-test
auto-activate-base: false
- uses: astral-sh/setup-uv@v7.6.0
- name: Install package and dev dependencies
shell: bash -el {0}
run: pip install ".[dev]"
- run: uv pip install --system ".[dev]"
- run: pytest
- name: Run tests
shell: bash -el {0}
run: pytest