File tree Expand file tree Collapse file tree 2 files changed +69
-7
lines changed Expand file tree Collapse file tree 2 files changed +69
-7
lines changed Original file line number Diff line number Diff line change 2323 run : echo ::set-output name=value::${GITHUB_REF#refs/*/}
2424
2525
26- build-upload :
27- name : Build and Upload
26+ build-core :
27+ name : Build core package
2828 runs-on : ubuntu-20.04
2929
3030 needs :
4747 - name : Build
4848 run : |
4949 echo "${{ needs.prepare.outputs.version }}" > VERSION
50- cd $ROOT_DIR && python setup.py bdist_wheel
50+ make build-core PYTHON=python
51+
52+ - name : Upload release assets
53+ 54+ with :
55+ files : ' ${{ env.ROOT_DIR }}/dist/*'
56+ repo-token : ${{ secrets.ACCESS_TOKEN }}
57+ release-tag : ${{ needs.prepare.outputs.version }}
58+
59+ - name : Upload package to pypi
60+ 61+ with :
62+ user : __token__
63+ password : ${{ secrets.PYPI_API_TOKEN }}
64+ packages_dir : ' ${{ env.ROOT_DIR }}/dist/'
65+
66+
67+ build-datascience :
68+ name : Build datascience package
69+ runs-on : ubuntu-20.04
70+
71+ needs :
72+ - prepare
73+
74+ env :
75+ ROOT_DIR : src/datascience
76+
77+ steps :
78+ - uses : actions/checkout@v3
79+
80+ - name : Setup Python
81+ uses : actions/setup-python@v4
82+ with :
83+ python-version : ' 3.8'
84+
85+ - name : Install build dependencies
86+ run : python -m pip install --upgrade pip wheel
87+
88+ - name : Build
89+ run : |
90+ echo "${{ needs.prepare.outputs.version }}" > VERSION
91+ make build-datascience PYTHON=python
5192
5293 - name : Upload release assets
5394
Original file line number Diff line number Diff line change @@ -47,15 +47,30 @@ define UPLOAD
4747 cd src/$1/ && $(PYTHON ) -m twine upload -r ydata dist/*
4848endef
4949
50- build : # ## Build package
50+ build-core :
5151 $(call BUILD,core)
5252
53- upload : # ## Upload build package into pypi
53+ build-datascience :
54+ $(call BUILD,datascience)
55+
56+ build-all : build-core build-datascience # ## Build all packages
57+
58+ upload-core :
5459 $(call UPLOAD,core)
5560
56- lint : # ## Run prospector
61+ upload-datascience :
62+ $(call UPLOAD,datascience)
63+
64+ upload-all : upload-core upload-datascience # ## Upload all packages to pypi
65+
66+ lint-core : # ## Run prospector
5767 $(PYTHON ) -m prospector src/core
5868
69+ lint-datascience : # ## Run prospector
70+ $(PYTHON ) -m prospector src/datascience
71+
72+ lint : lint-core lint-datascience # ## Run prospector on all packages
73+
5974define LINK_LOCAL
6075 $(PIP ) install -e src/$1
6176endef
@@ -64,5 +79,11 @@ link-core:
6479 echo " 0.0.0" > src/core/VERSION
6580 $(call LINK_LOCAL,core)
6681
67- test : link-core # ## Runs the tests
82+ link-datascience :
83+ echo " 0.0.0" > src/datascience/VERSION
84+ $(call LINK_LOCAL,datascience)
85+
86+ link-all : link-core link-datascience # ## Link all packages
87+
88+ test : link-all # ## Runs the tests
6889 $(PYTHON ) -m pytest src/core
You can’t perform that action at this time.
0 commit comments