diff --git a/.github/workflows/Tests.yaml b/.github/workflows/Tests.yaml index 951247c..82fab7c 100644 --- a/.github/workflows/Tests.yaml +++ b/.github/workflows/Tests.yaml @@ -17,18 +17,20 @@ jobs: 3.10 3.11 3.12 + 3.13 + cache: pip - name: Install Hatch - run: python -m pip install hatch + run: python -m pip install "hatch >= 1.10.0" - name: Perform release check run: hatch run lint:release - name: Run tests - run: hatch run test:cov --verbose + run: hatch test --all --cover-quiet --verbose - name: Generate report - run: hatch env run -e test.py3.12 coverage xml + run: hatch env run -e hatch-test.py3.12 coverage xml - name: Upload coverage uses: codecov/codecov-action@v5 diff --git a/pyproject.toml b/pyproject.toml index 787838f..891b7e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,25 +37,11 @@ lambda-repl = "lambda_repl.main:main_cli" requires = ["hatchling"] build-backend = "hatchling.build" -[tool.hatch.envs.test] -dependencies = [ - "coverage[toml] == 7.*" -] - -[tool.hatch.envs.test.scripts] -test = "python -m unittest discover {args}" -cov-run = "coverage run -m unittest discover {args}" -cov-report = [ - "- coverage combine", - "coverage report" -] -cov = [ - "cov-run", - "cov-report" -] +[tool.hatch.envs.hatch-test] +installer = "pip" -[[tool.hatch.envs.test.matrix]] -python = ["3.10", "3.11", "3.12"] +[[tool.hatch.envs.hatch-test.matrix]] +python = ["3.10", "3.11", "3.12", "3.13"] [tool.hatch.envs.lint] dependencies = [