Skip to content

Commit bfe8663

Browse files
author
Martin Urban
committed
Add github action for creating python wheel files
1 parent 266a876 commit bfe8663

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build_wheel.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Wheel
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [3.9, 3.10, 3.11, 3.12]
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install wheel setuptools
28+
pip install -r requirements.txt
29+
./run_automation.sh setup-dev-env
30+
31+
- name: Build wheel
32+
run: |
33+
./run_automation.sh build-wheel
34+
35+
- name: Upload artifact
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: wheel-${{ matrix.python-version }}
39+
path: dist/*.whl

0 commit comments

Comments
 (0)