From fa90fbae0cc329e6dd6a86b8254a09e2b25cf65d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 5 Nov 2023 14:30:28 -0500 Subject: Fix GitHub Action Workflows and Add Support for Newer Python Versions (#29) * Use ubuntu 20 instead of latest * Add python 3.10, 3.11, and 3.12 * Update action versions and use poetry cache * Install poetry before using cache * Use matrix for different os versions * Fix mypy install failure * Fix pathlib subclassing and strtobool distutils deprecation * Pin poetry in CI to 1.7.0 * Remove 3.11 and 3.12 temporarily * Add 3.11 * Add coverage.xml to gitignore * Only run 3.11 temporarily * Temp test command change * Use cov report * Show files * Use newer pytest versions for newer python versions * Try using 3.12 * Tweak command * Test using coverage directly * Use poetry run * Fix typo * Add back other python versions * Remove test_ci task * Add changelog entry --- pyproject.toml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 3f295dd..52fb13c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,6 @@ packages = [ [tool.taskipy.tasks] test = "task test_cov -- --cov-report term-missing" test_cov = "task pytest -- --cov=config_file/" -test_ci = "task test_cov -- --cov-report=xml" lint = "task lint_types && task lint_precommit" lint_types = "poetry run mypy config_file/ tests/" lint_precommit = "poetry run pre-commit run --all" @@ -49,14 +48,27 @@ pre-commit = { version = "^2.1", python = "^3.6.1" } autoflake = "^1.3.1" isort = "^5.6.4" seed-isort-config = { version = "^2.1.1", python = "^3.6.1" } -pytest = "^6.0.0" -pytest-cov = "^2.8.1" -pytest-sugar = "^0.9.3" +pytest = [ + { version = "^6.0.0", python = ">=3.6,<3.7" }, + { version = "^7", python = ">=3.7,<4.0" } +] +pytest-cov = [ + { version = "^2.8.1", python = ">=3.6,<3.7" }, + { version = "^4", python = ">=3.7,<4.0" } +] +pytest-sugar = [ + { version = "^0.9.3", python = ">=3.6,<3.7" }, + { version = "^0.9.7", python = ">=3.7,<4.0" } +] taskipy = "^1.2.1" bump2version = "^1.0.0" flake8 = "^3.7.9" black = "^20.8b1" -mypy = "^0.782" +mypy = [ + { version = "^0.971", python = ">=3.6,<3.8" }, + { version = "^1.6", python = "^3.8"} +] + [tool.black] target_version = ['py36'] include = '\.pyi?$' -- cgit v1.2.3