Skip to content

Add Github actions for MacOS #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/macosx.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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