Skip to content

Commit 75c1549

Browse files
authored
Merge pull request #137 from hoefling/gh-actions-macosx
Add Github actions for MacOS
2 parents fc3d9d9 + ff83461 commit 75c1549

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/macosx.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: MacOS
2+
on: [push, pull_request]
3+
jobs:
4+
macosx:
5+
runs-on: macos-latest
6+
strategy:
7+
matrix:
8+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Install build dependencies
12+
run: |
13+
pip install --upgrade pip setuptools wheel
14+
brew install libxml2 libxmlsec1 pkg-config
15+
- name: Set environment variables
16+
shell: bash
17+
run: |
18+
echo ::set-env name=PKGVER::$(python setup.py --version)
19+
- name: Build macosx_x86_64 wheel
20+
run: |
21+
python setup.py bdist_wheel
22+
- name: Install test dependencies
23+
run: |
24+
pip install --upgrade -r requirements-test.txt
25+
pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
26+
- name: Run tests
27+
run: |
28+
pytest -v --color=yes

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ python-xmlsec
77
:target: https://ci.appveyor.com/project/hoefling/xmlsec
88
.. image:: https://github.com/mehcode/python-xmlsec/workflows/manylinux2010/badge.svg
99
:target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22manylinux2010%22
10+
.. image:: https://github.com/mehcode/python-xmlsec/workflows/MacOS/badge.svg
11+
:target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22MacOS%22
1012
.. image:: https://codecov.io/gh/mehcode/python-xmlsec/branch/master/graph/badge.svg
1113
:target: https://codecov.io/gh/mehcode/python-xmlsec
1214
.. image:: https://img.shields.io/pypi/v/xmlsec.svg

0 commit comments

Comments
 (0)