Skip to content

Commit ac28cb9

Browse files
authored
Adds actions for documentation, wheel (#10)
* Adds actions for documentation, wheek * Update requirements-dev.txt
1 parent f99f6a3 commit ac28cb9

File tree

6 files changed

+157
-4
lines changed

6 files changed

+157
-4
lines changed

.github/workflows/black.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
name: Lint
2-
1+
name: Black Format Checker
32
on: [push, pull_request]
4-
53
jobs:
6-
lint:
4+
black-format-check:
75
runs-on: ubuntu-latest
86
steps:
97
- uses: actions/checkout@v2

.github/workflows/documentation.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Documentation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_wheels:
7+
name: Build documentation on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
# Used to host cibuildwheel
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install requirements
22+
run: python -m pip install -r requirements.txt
23+
24+
- name: Install requirements-dev.txt
25+
run: python -m pip install -r requirements-dev.txt
26+
27+
- name: Install
28+
run: python -m pip install -e .
29+
30+
- name: Documentation
31+
run: python -m sphinx ./_doc ./dist/html
32+
33+
- uses: actions/upload-artifact@v3
34+
with:
35+
path: ./dist/html/**

.github/workflows/wheels-linux.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Wheel Linux
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/**'
8+
9+
jobs:
10+
build_wheels:
11+
name: Build wheels on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
# Used to host cibuildwheel
21+
- uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.10'
24+
25+
- name: Install cibuildwheel
26+
run: python -m pip install cibuildwheel
27+
28+
- name: python version
29+
run: python -V
30+
31+
- name: Build wheels
32+
run: python -m cibuildwheel --output-dir wheelhouse
33+
# to supply options, put them in 'env', like:
34+
#env:
35+
# # CIBW_BUILD: "cp310* cp311*"
36+
# CIBW_SKIP: cp36-* cp37-* cp38-* cp39-*
37+
38+
- uses: actions/upload-artifact@v3
39+
with:
40+
path: ./wheelhouse/*.whl

.github/workflows/wheels-mac.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Wheel MacOS
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/**'
8+
9+
jobs:
10+
build_wheels:
11+
name: Build wheels on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [macOS-latest]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
# Used to host cibuildwheel
21+
- uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.10'
24+
25+
- name: Install cibuildwheel
26+
run: python -m pip install cibuildwheel
27+
28+
- name: python version
29+
run: python -V
30+
31+
- name: Build wheels
32+
run: python -m cibuildwheel --output-dir wheelhouse
33+
# to supply options, put them in 'env', like:
34+
#env:
35+
# CIBW_BUILD: cp311*
36+
37+
- uses: actions/upload-artifact@v3
38+
with:
39+
path: ./wheelhouse/*.whl

.github/workflows/wheels-windows.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Wheel Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/**'
8+
9+
jobs:
10+
build_wheels:
11+
name: Build wheels on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [windows-latest]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
# Used to host cibuildwheel
21+
- uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.10'
24+
25+
- name: Install cibuildwheel
26+
run: python -m pip install cibuildwheel
27+
28+
- name: python version
29+
run: python -V
30+
31+
- name: Build wheels
32+
run: python -m cibuildwheel
33+
# to supply options, put them in 'env', like:
34+
# env:
35+
# CIBW_BUILD: cp310-win_amd64* cp311-win_amd64*
36+
37+
- uses: actions/upload-artifact@v3
38+
with:
39+
path: ./wheelhouse/*.whl

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
autopep8
12
black
23
coverage
34
flake8
@@ -7,6 +8,7 @@ joblib
78
lightgbm
89
matplotlib
910
ml-dtypes
11+
onnxmltools
1012
onnxruntime
1113
pandas
1214
psutil

0 commit comments

Comments
 (0)