File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Pip4Linux
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ pull_request :
6
+ push :
7
+ branches :
8
+ - main
9
+ release :
10
+ types :
11
+ - published
12
+
13
+ jobs :
14
+ build :
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ platform : [ubuntu-latest]
19
+ python-version : ["3.8",
20
+ " 3.9" ,
21
+ " 3.10" ,
22
+ " 3.11" ,
23
+ " 3.12" ,
24
+ " 3.13" ,]
25
+
26
+ runs-on : ${{ matrix.platform }}
27
+
28
+ steps :
29
+ - uses : actions/checkout@v3
30
+ with :
31
+ submodules : true
32
+
33
+ - uses : actions/setup-python@v4
34
+ with :
35
+ python-version : ${{ matrix.python-version }}
36
+
37
+ - name : Update requirements
38
+ run : |
39
+ python -m pip install --upgrade pip
40
+ pip install pybind11 setuptools wheel twine
41
+
42
+ - name : Build and install for mac
43
+ run : |
44
+ cd python
45
+ python setup.py bdist_wheel --plat-name manylinux2014_x86_64
46
+
47
+ - name : Upload to pypi when release
48
+ env :
49
+ TWINE_USERNAME : __token__
50
+ TWINE_PASSWORD : ${{ secrets.PYPI_PYCGRAPH_TOKEN }}
51
+ run : |
52
+ cd python
53
+ twine check dist/*
54
+ twine upload --verbose --skip-existing dist/*
You can’t perform that action at this time.
0 commit comments