From 5cff534fdd9f6ab6e2c89cc25d4c7a95403777b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= Date: Sat, 14 Dec 2024 23:04:11 +0100 Subject: [PATCH] Add automatic tests for later Pythons (#83) * add GitHub Actions * add a badge to boot --- .github/workflows/tox.yml | 28 ++++++++++++++++++++++++++++ README.rst | 2 ++ meta.yaml | 39 +++++++++++++++++++-------------------- tox.ini | 2 +- 4 files changed, 50 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/tox.yml diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml new file mode 100644 index 0000000..7308220 --- /dev/null +++ b/.github/workflows/tox.yml @@ -0,0 +1,28 @@ +name: tox +on: + pull_request: + branches: + - master + push: + branches: + - master +jobs: + test: + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: | + python -m pip install --upgrade pip + python -m pip install tox tox-gh-actions + - name: Run tox + run: python -m tox diff --git a/README.rst b/README.rst index b4c97ae..0bf5dad 100644 --- a/README.rst +++ b/README.rst @@ -2,6 +2,8 @@ SeqLog =============================== +.. image:: https://github.com/tintoy/seqlog/actions/workflows/tox.yml/badge.svg + :target: https://github.com/tintoy/seqlog .. image:: https://img.shields.io/pypi/v/seqlog.svg :target: https://pypi.python.org/pypi/seqlog diff --git a/meta.yaml b/meta.yaml index 2154b8e..501d1df 100644 --- a/meta.yaml +++ b/meta.yaml @@ -1,20 +1,19 @@ -package: - name: seqlog - version: 0.3.31 - -requirements: - host: - - python - - setuptools - - run: - - python - -source: - git_url: http://github.com/tintoy/seqlog.git - -about: - home: http://github.com/tintoy/seqlog - license: MIT - license_file: LICENSE - +package: + name: seqlog + version: 0.5.0 + +requirements: + host: + - python + - setuptools + + run: + - python + +source: + git_url: http://github.com/tintoy/seqlog.git + +about: + home: http://github.com/tintoy/seqlog + license: MIT + license_file: LICENSE diff --git a/tox.ini b/tox.ini index fa7c8eb..e6dafa4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36, py38, flake8 +envlist = py36, py38, py39, py310, py311, flake8 [testenv:flake8] basepython=python