generated from ydataai/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(actions): add datascience package to makefile and CI
- Loading branch information
1 parent
0990b5b
commit 307c2a0
Showing
2 changed files
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ jobs: | |
run: echo ::set-output name=value::${GITHUB_REF#refs/*/} | ||
|
||
|
||
build-upload: | ||
name: Build and Upload | ||
build-core: | ||
name: Build core package | ||
runs-on: ubuntu-20.04 | ||
|
||
needs: | ||
|
@@ -47,7 +47,48 @@ jobs: | |
- name: Build | ||
run: | | ||
echo "${{ needs.prepare.outputs.version }}" > VERSION | ||
cd $ROOT_DIR && python setup.py bdist_wheel | ||
make build-core PYTHON=python | ||
- name: Upload release assets | ||
uses: AButler/[email protected] | ||
with: | ||
files: '${{ env.ROOT_DIR }}/dist/*' | ||
repo-token: ${{ secrets.ACCESS_TOKEN }} | ||
release-tag: ${{ needs.prepare.outputs.version }} | ||
|
||
- name: Upload package to pypi | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
packages_dir: '${{ env.ROOT_DIR }}/dist/' | ||
|
||
|
||
build-datascience: | ||
name: Build datascience package | ||
runs-on: ubuntu-20.04 | ||
|
||
needs: | ||
- prepare | ||
|
||
env: | ||
ROOT_DIR: src/datascience | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install --upgrade pip wheel | ||
|
||
- name: Build | ||
run: | | ||
echo "${{ needs.prepare.outputs.version }}" > VERSION | ||
make build-datascience PYTHON=python | ||
- name: Upload release assets | ||
uses: AButler/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters