Skip to content

Commit

Permalink
Merge f77c4f8 into 2165fb4
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Feb 22, 2023
2 parents 2165fb4 + f77c4f8 commit 0816bc4
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 223 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
@@ -1,3 +1,8 @@
[run]
include = */shoobx/wfmc/*
omit = */test*
relative_files = True

[report]
show_missing = true
precision = 2
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,32 @@
name: shoobx.wfmc

on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0' # run once a week on Sunday
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion CHANGES.rst
Expand Up @@ -5,7 +5,11 @@ CHANGES
4.3.1 (unreleased)
------------------

- Nothing changed yet.
- Moving CI to github actions

- Removed buildout support

- Added Python 3.10 and 3.11 support.


4.3.0 (2022-04-07)
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -2,8 +2,8 @@
Shoobx WfMC-based Process Engine
--------------------------------

.. image:: https://travis-ci.org/Shoobx/shoobx.wfmc.png?branch=master
:target: https://travis-ci.org/Shoobx/shoobx.wfmc
.. image:: https://github.com/Shoobx/shoobx.wfmc/actions/workflows/test.yml/badge.svg
:target: https://github.com/Shoobx/shoobx.wfmc/actions

.. image:: https://coveralls.io/repos/github/Shoobx/shoobx.wfmc/badge.svg?branch=master
:target: https://coveralls.io/github/Shoobx/shoobx.wfmc?branch=master
Expand Down
189 changes: 0 additions & 189 deletions bootstrap.py

This file was deleted.

11 changes: 0 additions & 11 deletions buildout.cfg

This file was deleted.

9 changes: 7 additions & 2 deletions setup.py
Expand Up @@ -46,6 +46,8 @@ def read(*rnames):
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Natural Language :: English',
'Operating System :: OS Independent'],
Expand All @@ -55,8 +57,11 @@ def read(*rnames):
package_dir = {'': 'src'},
namespace_packages=['shoobx'],
extras_require = dict(
test=['zope.testing'
]),
test=[
'coverage',
'zope.testing',
'zope.testrunner',
]),
install_requires=['setuptools',
'zope.component',
'persistent',
Expand Down
16 changes: 12 additions & 4 deletions tox.ini
@@ -1,10 +1,18 @@
[tox]
envlist = py37, py38, py39
envlist = py37, py38, py39, py310, py311

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
commands =
zope-testrunner -vpc1 --all --test-path ./src
coverage run {envbindir}/zope-testrunner -vvc1 --all --test-path ./src
coverage xml
coverage report -m
deps =
.[test]
zope.testing==4.1.3
zope.testrunner

0 comments on commit 0816bc4

Please sign in to comment.