Skip to content

Commit 72356c8

Browse files
authored
Add wheel workflow (#108)
* Add wheel workflow * python 3.10
1 parent 6f2f9f1 commit 72356c8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/wheel.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "🐍 Python Wheel"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
workflow_call:
12+
13+
jobs:
14+
build-wheel:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Get source code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.10"
24+
cache: "pip"
25+
cache-dependency-path: "requirements*.txt"
26+
27+
- name: Install project requirements
28+
run: |
29+
python -m pip install -U pip setuptools wheel
30+
python -m pip install -U build
31+
32+
- name: Install project as a package
33+
run: python -m pip install -e .
34+
35+
- name: Build a binary wheel and a source tarball
36+
run: python -m build .
37+
38+
- uses: actions/upload-artifact@v4
39+
with:
40+
name: python_wheel
41+
path: dist/*
42+
if-no-files-found: error

0 commit comments

Comments
 (0)