-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from hoefling/gh-actions-macosx
Add Github actions for MacOS
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters