Skip to content

Commit

Permalink
Merge pull request #137 from hoefling/gh-actions-macosx
Browse files Browse the repository at this point in the history
Add Github actions for MacOS
  • Loading branch information
hoefling committed May 20, 2020
2 parents fc3d9d9 + ff83461 commit 75c1549
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .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
2 changes: 2 additions & 0 deletions README.rst
Expand Up @@ -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
Expand Down

0 comments on commit 75c1549

Please sign in to comment.