Skip to content

Commit b80100d

Browse files
committed
add github actions for macos
Signed-off-by: oleg.hoefling <[email protected]>
1 parent fc3d9d9 commit b80100d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-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

0 commit comments

Comments
 (0)