Skip to content

Commit

Permalink
Add automatic tests for later Pythons (#83)
Browse files Browse the repository at this point in the history
* add GitHub Actions
* add a badge to boot
  • Loading branch information
piotrmaslanka authored Dec 14, 2024
1 parent 301382f commit 5cff534
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 21 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
39 changes: 19 additions & 20 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36, py38, flake8
envlist = py36, py38, py39, py310, py311, flake8

[testenv:flake8]
basepython=python
Expand Down

0 comments on commit 5cff534

Please sign in to comment.