From 68ebba4c21b746477eff0d0986ad95f502487f73 Mon Sep 17 00:00:00 2001 From: Matti Lamppu Date: Sun, 29 Jan 2023 20:50:59 +0200 Subject: [PATCH] Update CI configs --- .github/workflows/docs.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 4 ++-- poetry.lock | 20 +++++++++++++++++++- pyproject.toml | 7 +++++++ 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index dd53bec..f585b6b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,4 +12,4 @@ on: jobs: docs: - uses: MrThearMan/CI/.github/workflows/docs.yml@v0.2.2 + uses: MrThearMan/CI/.github/workflows/docs.yml@v0.3.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 55934ca..3522687 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,6 @@ on: jobs: release: - uses: MrThearMan/CI/.github/workflows/release.yml@v0.2.2 + uses: MrThearMan/CI/.github/workflows/release.yml@v0.3.0 secrets: pypi-token: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7aa8187..4e0b717 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,6 @@ on: jobs: test: - uses: MrThearMan/CI/.github/workflows/test.yml@v0.2.2 + uses: MrThearMan/CI/.github/workflows/test.yml@v0.3.0 with: - env: '["py38", "py39", "py310", "py311"]' + python-version: '["3.8", "3.9", "3.10", "3.11"]' diff --git a/poetry.lock b/poetry.lock index f798c4b..0e980ec 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1617,6 +1617,24 @@ virtualenv = ">=20.17.1" docs = ["furo (>=2022.12.7)", "sphinx (>=6.1.3)", "sphinx-argparse-cli (>=1.11)", "sphinx-autodoc-typehints (>=1.20.1)", "sphinx-copybutton (>=0.5.1)", "sphinx-inline-tabs (>=2022.1.2b11)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=22.12)"] testing = ["build[virtualenv] (>=0.9)", "covdefaults (>=2.2.2)", "devpi-process (>=0.3)", "diff-cover (>=7.3)", "distlib (>=0.3.6)", "flaky (>=3.7)", "hatch-vcs (>=0.3)", "hatchling (>=1.12.2)", "psutil (>=5.9.4)", "pytest (>=7.2)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-xdist (>=3.1)", "re-assert (>=1.1)", "time-machine (>=2.8.2)", "wheel (>=0.38.4)"] +[[package]] +name = "tox-gh-actions" +version = "3.0.0" +description = "Seamless integration of tox into GitHub Actions" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tox-gh-actions-3.0.0.tar.gz", hash = "sha256:1a20286a1102c720a5979f56a060f6d618306dbb660a6724a31d89f397421e5c"}, + {file = "tox_gh_actions-3.0.0-py2.py3-none-any.whl", hash = "sha256:059ebfdba76864819f3a4629c3404be094dae9dc8e7922c7c7a9999b9551f82a"}, +] + +[package.dependencies] +tox = ">=4,<5" + +[package.extras] +testing = ["black", "devpi-process", "flake8 (>=6,<7)", "mypy", "pytest (>=7,<8)", "pytest-cov (>=3,<4)", "pytest-mock (>=3,<4)", "pytest-randomly (>=3)"] + [[package]] name = "types-pytz" version = "2022.7.1.0" @@ -1793,4 +1811,4 @@ drf = ["djangorestframework"] [metadata] lock-version = "2.0" python-versions = ">=3.8,<4" -content-hash = "5dd920aeb3704581616745f510fad30ad614f88c853ba3d76ee8a9192dabb774" +content-hash = "b89f07a39fdaca4527eb84b0b591c3541500309ffd06cff74617a7e3637eb8b9" diff --git a/pyproject.toml b/pyproject.toml index 57f0850..1d11f34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,7 @@ pytest-django = "4.5.2" pytest-freezegun = "0.4.2" pre-commit = "3.0.1" tox = "4.4.2" +tox-gh-actions = "3.0.0" coveralls = "3.3.1" [tool.poetry.group.docs.dependencies] @@ -154,6 +155,12 @@ legacy_tox_ini = """ envlist = py{38, 39, 310, 311}-django{31, 32, 40, 41} isolated_build = true +[gh-actions] +python = + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311 [testenv] allowlist_externals =