Skip to content
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

Update CI for mac-os #34

Merged
merged 10 commits into from
Feb 12, 2021
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
10 changes: 10 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@
"contributions": [
"bug"
]
},
{
"login": "T-Allen-sudo",
"name": "T-Allen-sudo",
"avatar_url": "https://avatars.githubusercontent.com/u/65913092?v=4",
"profile": "https://github.com/T-Allen-sudo",
"contributions": [
"maintenance",
"test"
]
}
],
"contributorsPerLine": 7,
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==1.8.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
uses: joerick/cibuildwheel@v1.9.0
with:
output-dir: wheelhouse
env:
CIBW_BUILD: "cp36-manylinux_x86_64 cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp36-win_amd64 cp37-win_amd64 cp38-win_amd64"
CIBW_BUILD: "cp36-manylinux_x86_64 cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp36-win_amd64 cp37-win_amd64 cp38-win_amd64 cp36-macosx_x86_64 cp37-macosx_x86_64 cp38-macosx_x86_64"
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/mac-os-build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: DeepForest-CI-MacOS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display python version
run: python -c "import sys; print(sys.version)"
- name: Install OS packages
run: brew install libomp
- name: Install package dependencies
run: |
python -m pip install --upgrade pip
pip install -r build_tools/requirements.txt
- name: Install
run: pip install --verbose --editable .
- name: Run tests
run: |
pytest ./tests --cov-config=.coveragerc --cov-report=xml --cov=deepforest deepforest
- name: Publish code coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/pjgao"><img src="https://avatars.githubusercontent.com/u/22350313?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Joey Gao</b></sub></a><br /><a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=pjgao" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/Mr-memorandum"><img src="https://avatars.githubusercontent.com/u/33889145?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mr-memorandum</b></sub></a><br /><a href="https://github.com/LAMDA-NJU/Deep-Forest/issues?q=author%3AMr-memorandum" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/NiMaZi"><img src="https://avatars.githubusercontent.com/u/19431549?v=4?s=100" width="100px;" alt=""/><br /><sub><b>NiMaZi</b></sub></a><br /><a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=NiMaZi" title="Code">💻</a> <a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=NiMaZi" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/T-Allen-sudo"><img src="https://avatars.githubusercontent.com/u/65913092?v=4?s=100" width="100px;" alt=""/><br /><sub><b>T-Allen-sudo</b></sub></a><br /><a href="#maintenance-T-Allen-sudo" title="Maintenance">🚧</a> <a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=T-Allen-sudo" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/xuyxu"><img src="https://avatars.githubusercontent.com/u/22359569?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yi-Xuan Xu</b></sub></a><br /><a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=xuyxu" title="Code">💻</a> <a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=xuyxu" title="Documentation">📖</a> <a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=xuyxu" title="Tests">⚠️</a></td>
<td align="center"><a href="https://www.linkedin.com/in/tczhao/"><img src="https://avatars.githubusercontent.com/u/20961507?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tczhao</b></sub></a><br /><a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=tczhao" title="Code">💻</a> <a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=tczhao" title="Documentation">📖</a> <a href="https://github.com/LAMDA-NJU/Deep-Forest/commits?author=tczhao" title="Tests">⚠️</a></td>
</tr>
Expand Down