File tree Expand file tree Collapse file tree 7 files changed +120
-133
lines changed Expand file tree Collapse file tree 7 files changed +120
-133
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ python-version : [ 3.6, 3.7, 3.8 ]
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up Python ${{ matrix.python-version }}
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : ${{ matrix.python-version }}
19+
20+ - name : Patch for Python 3.6
21+ if : matrix.python-version == 3.6
22+ run : |
23+ pip install strip-hints==0.1.9
24+ ./patch-python3.6.sh
25+
26+ - name : Install dependencies
27+ run : |
28+ pip install -r requirements.txt
29+
30+ - name : Install dev dependencies
31+ run : |
32+ pip install -r dev_requirements.txt
33+
34+ - name : Test
35+ run : |
36+ pytest
37+
38+ - name : Build package
39+ run : |
40+ PYTHON_VERSION=${{ matrix.python-version }}
41+ python setup.py bdist_wheel --python-tag py${PYTHON_VERSION//.}
42+
43+ - name : Test install package
44+ run : |
45+ mkdir test_install
46+ cd test_install
47+
48+ pip install virtualenv
49+ virtualenv installable
50+ source installable/bin/activate
51+
52+ pip install $(find ${GITHUB_WORKSPACE}/dist -iname "*.whl")
53+ python -c "import datastream"
54+
55+ - name : PyPi Publish
56+ env :
57+ TWINE_USERNAME : __token__
58+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
59+ run :
60+ twine upload dist/*
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ python-version : [ 3.6, 3.7, 3.8 ]
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Set up Python ${{ matrix.python-version }}
14+ uses : actions/setup-python@v2
15+ with :
16+ python-version : ${{ matrix.python-version }}
17+
18+ - name : Cache pip
19+ uses : actions/cache@v2
20+ with :
21+ # This path is specific to Ubuntu
22+ path : ~/.cache/pip
23+ # Look to see if there is a cache hit for the corresponding requirements file
24+ key : ${{ runner.os }}-python${{ matrix.python-version}}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev_requirements.txt') }}
25+
26+ - name : Patch for Python 3.6
27+ if : matrix.python-version == 3.6
28+ run : |
29+ pip install strip-hints==0.1.9
30+ ./patch-python3.6.sh
31+
32+ - name : Install dependencies
33+ run : |
34+ pip install -r requirements.txt
35+
36+ - name : Install dev dependencies
37+ run : |
38+ pip install -r dev_requirements.txt
39+
40+ - name : Test
41+ run : |
42+ pytest
43+
44+ - name : Build package
45+ run : |
46+ PYTHON_VERSION=${{ matrix.python-version }}
47+ python setup.py bdist_wheel --python-tag py${PYTHON_VERSION//.}
48+
49+ - name : Test install package
50+ run : |
51+ mkdir test_install
52+ cd test_install
53+
54+ pip install virtualenv
55+ virtualenv installable
56+ source installable/bin/activate
57+
58+ pip install $(find ${GITHUB_WORKSPACE}/dist -iname "*.whl")
59+ python -c "import datastream"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11strip-hints==0.1.9
22pytest>=6.0.1
3+ twine>=3.2.0
Original file line number Diff line number Diff line change 1515done
1616
1717sed -i ' s/Dataset\[[A-Z]\]/Dataset/g' datastream/datastream.py;
18-
19- sed -i -E ' s/(Programming *Language *:: *Python *:: *)3.7/\13.6/' setup.cfg
20- sed -i ' /Programming Language :: Python :: 3.8/d' setup.cfg
21-
22- sed -i ' s/python/python3.6/g' publish.sh
23- sed -i -E ' s/(VERSION_TAG=)(.*)(")$/\1\2+python3.6\3/' publish.sh
24- sed -i ' /test -z.*exit 2/d' publish.sh
25- sed -i ' /test -z.*exit 3/d' publish.sh
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments