File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name : Python Release Zip Ball
5
+
6
+ on :
7
+ push :
8
+ tags :
9
+ - " v*"
10
+
11
+ jobs :
12
+ build :
13
+
14
+ runs-on : ${{ matrix.os }}
15
+ permissions :
16
+ contents : write
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ os : [ubuntu-22.04]
21
+ python-version : ["3.10"]
22
+
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - name : Set up Python ${{ matrix.python-version }}
26
+ uses : actions/setup-python@v3
27
+ with :
28
+ python-version : ${{ matrix.python-version }}
29
+ - name : Install Python dependencies
30
+ run : |
31
+ python -m pip install --upgrade pip
32
+ python -m pip install -r requirements.txt
33
+ - name : Lint with Ruff
34
+ run : |
35
+ python -m pip install ruff
36
+ ruff check --output-format=github .
37
+ continue-on-error : true
38
+ - name : Build Dist Wheel
39
+ run : |
40
+ mkdir -p ${{ github.workspace }}/artifact
41
+ python setup.py bdist_wheel
42
+ mv dist/* ${{ github.workspace }}/artifact/
43
+ - name : Archive Zip Ball
44
+ uses : softprops/action-gh-release@v2
45
+ with :
46
+ draft : true
47
+ prerelease : false
48
+ files : " ${{ github.workspace }}/artifact/*.whl"
49
+ fail_on_unmatched_files : true
You can’t perform that action at this time.
0 commit comments