From 41aefbcd155fb1c266157186ec302b172bbef4a4 Mon Sep 17 00:00:00 2001 From: AlgoFoe Date: Sun, 16 Aug 2026 22:58:18 +0530 Subject: [PATCH 1/2] ci: migrate from tox to uv test action --- .github/workflows/test_and_deploy.yml | 6 +++--- pyproject.toml | 22 +--------------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index b092aa0..c73069a 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -44,12 +44,12 @@ jobs: - name: install HDF5 libs on ARM Mac if: matrix.os == 'macos-latest' run: brew install hdf5 - - uses: neuroinformatics-unit/actions/test@v2 + - name: Run tests + uses: neuroinformatics-unit/actions/test-uv@main with: - python-version: ${{ matrix.python-version }} + python-version: "${{ matrix.python-version }}" secret-codecov-token: ${{ secrets.CODECOV_TOKEN }} - - name: Notify slack on scheduled failure if: failure() && github.event_name == 'schedule' uses: ravsamhq/notify-slack-action@v2 diff --git a/pyproject.toml b/pyproject.toml index 1726d48..56a5ff6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,6 @@ dev = [ "pytest", "pytest-cov", "coverage", - "tox", "black", "mypy", "pre-commit", @@ -70,7 +69,7 @@ include = ["morphapi*"] exclude = ["tests*", "examples*"] [tool.pytest.ini_options] -addopts = "--cov=morphapi" +addopts = "--cov=morphapi --cov-report=xml --color=yes -vv" [tool.black] target-version = ['py311','py312', 'py313'] @@ -95,22 +94,3 @@ fix = true [tool.ruff.lint] select = ["I", "E", "F"] - -[tool.tox] -legacy_tox_ini = """ -[tox] -envlist = py{311,312,313} -isolated_build = True - -[gh-actions] -python = - 3.11: py311 - 3.12: py312 - 3.13: py313 - -[testenv] -extras = - dev -commands = - pytest -v --color=yes --cov=morphapi --cov-report=xml -""" From 5c7d3dfa14c5804877ca84591c44c297a40a8135 Mon Sep 17 00:00:00 2001 From: Varun Singh Date: Tue, 18 Aug 2026 17:33:00 +0530 Subject: [PATCH 2/2] Update test action version in workflow --- .github/workflows/test_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index c73069a..4bce9b6 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -45,7 +45,7 @@ jobs: if: matrix.os == 'macos-latest' run: brew install hdf5 - name: Run tests - uses: neuroinformatics-unit/actions/test-uv@main + uses: neuroinformatics-unit/actions/test-uv@34bedfdfd70c6010be02182c9ca37fae8a1fd99d # v3.0.0 with: python-version: "${{ matrix.python-version }}" secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}