diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..840a3b5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test-python27: + runs-on: ubuntu-latest + container: python:2.7-slim + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + pip install . + + - name: Run tests + run: | + python -m unittest discover -s tests + + test-python311: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + pip install . + + - name: Run tests + run: | + python -m unittest discover -s tests diff --git a/.gitignore b/.gitignore index 81e6a82..e07a852 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ libcomxml/bindings/*.py build/* .*.swp dist/* +*.egg-info/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 626fa05..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: python -python: -- '2.7' -- '3.5' -install: -- pip install . -- pip install coveralls -script: -- coverage run setup.py test -after_success: -- coveralls -- coverage report -deploy: - provider: pypi - user: gisce - password: - secure: DnHZXDNTsrnnnc/cB+wYOGklsZ2zrnoss/PKSuYsbTSh7AAOU/8BCXfebB095zjLTBx7pGPhrLFM/sTuxAs1PXDT6s6q66w7hKVupIeU+232kRkneBcHOAjfc9HhrWwfrAhw5NIkRy8pA2xOkI54leopW6zA4CZXmIM71lsHIuY= - on: - tags: true - repo: gisce/libComXML diff --git a/README.rst b/README.rst index 53101d7..da19d50 100644 --- a/README.rst +++ b/README.rst @@ -2,8 +2,8 @@ libComXML ========= -.. image:: https://travis-ci.org/gisce/libComXML.png?branch=master - :target: https://travis-ci.org/gisce/libComXML +.. image:: https://github.com/gisce/libComXML/workflows/CI/badge.svg + :target: https://github.com/gisce/libComXML/actions :alt: Build Status .. image:: https://coveralls.io/repos/github/gisce/libComXML/badge.svg?branch=master diff --git a/docs/index.rst b/docs/index.rst index e7006af..219eb56 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,8 +6,8 @@ LibComXML: Python object XML serialization Release v\ |version| -.. image:: https://travis-ci.org/gisce/libComXML.png?branch=master - :target: https://travis-ci.org/gisce/libComXML +.. image:: https://github.com/gisce/libComXML/workflows/CI/badge.svg + :target: https://github.com/gisce/libComXML/actions Guide =====