Skip to content

Commit 96478e7

Browse files
committed
issue_25 actions update
1 parent f3b38db commit 96478e7

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 }}

.github/workflows/tests.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: Unit Tests
2-
32
on:
43
push:
54
branches:
65
- master
76
pull_request:
87
branches:
98
- master
10-
119
jobs:
1210
tests-python2:
1311
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)