diff --git a/.github/workflows/macosx.yml b/.github/workflows/macosx.yml new file mode 100644 index 00000000..daf2c3dd --- /dev/null +++ b/.github/workflows/macosx.yml @@ -0,0 +1,28 @@ +name: MacOS +on: [push, pull_request] +jobs: + macosx: + runs-on: macos-latest + strategy: + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + steps: + - uses: actions/checkout@v1 + - name: Install build dependencies + run: | + pip install --upgrade pip setuptools wheel + brew install libxml2 libxmlsec1 pkg-config + - name: Set environment variables + shell: bash + run: | + echo ::set-env name=PKGVER::$(python setup.py --version) + - name: Build macosx_x86_64 wheel + run: | + python setup.py bdist_wheel + - name: Install test dependencies + run: | + pip install --upgrade -r requirements-test.txt + pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ + - name: Run tests + run: | + pytest -v --color=yes diff --git a/README.rst b/README.rst index 374cb6d0..b58c518b 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,8 @@ python-xmlsec :target: https://ci.appveyor.com/project/hoefling/xmlsec .. image:: https://github.com/mehcode/python-xmlsec/workflows/manylinux2010/badge.svg :target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22manylinux2010%22 +.. image:: https://github.com/mehcode/python-xmlsec/workflows/MacOS/badge.svg + :target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22MacOS%22 .. image:: https://codecov.io/gh/mehcode/python-xmlsec/branch/master/graph/badge.svg :target: https://codecov.io/gh/mehcode/python-xmlsec .. image:: https://img.shields.io/pypi/v/xmlsec.svg