From c62b284c56b3ec55eb6992bd52ae0e9fe7a186fd Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Thu, 12 Sep 2024 14:07:57 +0300 Subject: [PATCH] ci(actions): add github actions --- .github/workflows/tox.yaml | 26 ++++++++++++++++++++++++++ pyproject.toml | 4 ++-- tox.ini | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/tox.yaml diff --git a/.github/workflows/tox.yaml b/.github/workflows/tox.yaml new file mode 100644 index 0000000..6d26eeb --- /dev/null +++ b/.github/workflows/tox.yaml @@ -0,0 +1,26 @@ +name: Run Tox +on: + pull_request: + branches: [main] +jobs: + test: + name: Test with ${{ matrix.python-version }} + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Run Tox + env: + TOXENV: py${{ matrix.python-version }} + run: tox diff --git a/pyproject.toml b/pyproject.toml index 72a4c95..f0b1a78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "bunyan-formatter" -version = "0.1.0" +version = "1.0.0" description = "Bunyan Formatter for Python" dependencies = [] readme = "README.md" -requires-python = ">=3.12" +requires-python = ">=3.9" authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }] [build-system] diff --git a/tox.ini b/tox.ini index 7989431..bc6a628 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py312, format, lint, type, test +envlist = py39, py310, py311, py312, format, lint, type, test skipsdist = True [testenv]