File tree Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Packages
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ jobs :
10
+ build-python2 :
11
+ runs-on : ubuntu-20.04
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : install python2 for ubuntu
15
+ run : sudo apt install python2
16
+ - name : get pip script for python2
17
+ run : curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
18
+ - name : install pip for python2
19
+ run : sudo python2 get-pip.py
20
+ - name : install requirements for python2
21
+ run : pip2 install -r requirements-2.txt
22
+ - name : build the package
23
+ run : python2.7 setup.py sdist bdist_wheel
24
+ build-python3 :
25
+ runs-on : ubuntu-20.04
26
+ steps :
27
+ - uses : actions/checkout@v2
28
+ - name : install requirements for python3
29
+ run : pip3 install -r requirements-3.txt
30
+ - name : build the package
31
+ run : python2.7 setup.py sdist bdist_wheel
32
+ # upload-to-pypi:
33
+ # runs-on: ubuntu-20.04
34
+ # steps:
35
+ # - name: Publish a Python distribution to PyPI
36
+ # uses: pypa/gh-action-pypi-publish@release/v1
37
+ # with:
38
+ # user: __token__
39
+ # password: ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1
1
name : Unit Tests
2
-
3
2
on :
4
3
push :
5
4
branches :
6
5
- master
7
6
pull_request :
8
7
branches :
9
8
- master
10
-
11
9
jobs :
12
10
tests-python2 :
13
11
runs-on : ubuntu-20.04
You can’t perform that action at this time.
0 commit comments