diff --git a/.github/workflows/pygeppetto-tests.yml b/.github/workflows/pygeppetto-tests.yml new file mode 100644 index 000000000..0faa68c74 --- /dev/null +++ b/.github/workflows/pygeppetto-tests.yml @@ -0,0 +1,30 @@ +name: Pygeppetto tests + +on: [push] + +jobs: + build-test: + defaults: + run: + working-directory: pygeppetto + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13", "pypy-3.10"] + + 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 + pip install pytest + pip install -r requirements.txt + pip install -r requirements-test.txt + pip install -e . + - name: Test with pytest + run: | + pytest \ No newline at end of file diff --git a/pygeppetto/requirements-test.txt b/pygeppetto/requirements-test.txt index e0993958a..d932c98d0 100644 --- a/pygeppetto/requirements-test.txt +++ b/pygeppetto/requirements-test.txt @@ -1,4 +1,4 @@ -pytest==4.6.2 -pytest-cov==2.7.1 -tox==3.12.1 +pytest +pytest-cov +tox responses \ No newline at end of file diff --git a/pygeppetto/setup.py b/pygeppetto/setup.py index c9b5120e6..5bde40a37 100644 --- a/pygeppetto/setup.py +++ b/pygeppetto/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -__version__ = "0.8.1" +__version__ = "0.9.0" required_packages = [ 'pyecore>=0.11.5', @@ -31,8 +31,10 @@ classifiers=[ "Programming Language :: Python", 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', "Operating System :: OS Independent", "Intended Audience :: Developers", "Topic :: Software Development", diff --git a/pygeppetto/tests/test_xmi.py b/pygeppetto/tests/test_xmi.py index e3c67dfbf..d1330fd3c 100644 --- a/pygeppetto/tests/test_xmi.py +++ b/pygeppetto/tests/test_xmi.py @@ -15,20 +15,18 @@ def filepath(filename): return os.path.join(HERE, 'xmi-data', filename) - - def test_read_mediumXMI(rset): resource = rset.get_resource(URI(filepath('MediumNet.net.nml.xmi'))) root = resource.contents[0] assert root # The root exists -@pytest.mark.skip('Too slow') +# @pytest.mark.skip('Too slow') def test_read_BigXMI(rset): resource = rset.get_resource(URI(filepath('BigCA1.net.nml.xmi'))) root = resource.contents[0] assert root # The root exists -@pytest.mark.skip('Too slow') +# @pytest.mark.skip('Too slow') def test_read_LargeXMI(rset): resource = rset.get_resource(URI(filepath('LargeConns.net.nml.xmi'))) root = resource.contents[0] @@ -41,14 +39,14 @@ def test_readwrite_mediumXMI(tmpdir, rset): f = tmpdir.mkdir('pyecore-tmp').join('medium.xmi') resource.save(output=URI(str(f))) -@pytest.mark.skip('Too slow') +# @pytest.mark.skip('Too slow') def test_readwrite_BigXMI(tmpdir, rset): resource = rset.get_resource(URI(filepath('BigCA1.net.nml.xmi'))) root = resource.contents[0] f = tmpdir.mkdir('pyecore-tmp').join('big.xmi') resource.save(output=URI(str(f))) -@pytest.mark.skip('Too slow') +# @pytest.mark.skip('Too slow') def test_readwrite_LargeXMI(tmpdir, rset): resource = rset.get_resource(URI(filepath('LargeConns.net.nml.xmi'))) root = resource.contents[0] @@ -73,7 +71,7 @@ def test_roundtrip_mediumXMI(tmpdir, rset): assert root assert root.name == 'mediumTestModel' -@pytest.mark.skip('Too slow') +# @pytest.mark.skip('Too slow') def test_roundtrip_BigXMI(tmpdir, rset): resource = rset.get_resource(URI(filepath('BigCA1.net.nml.xmi'))) root = resource.contents[0] @@ -91,7 +89,7 @@ def test_roundtrip_BigXMI(tmpdir, rset): assert root assert root.name == 'bigTestModel' -@pytest.mark.skip('Too slow') +# @pytest.mark.skip('Too slow') def test_roundtrip_LargeXMI(tmpdir, rset): resource = rset.get_resource(URI(filepath('LargeConns.net.nml.xmi'))) root = resource.contents[0]