File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments