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 (#26)
- Loading branch information
1 parent
0990b5b
commit ea1cdb9
Showing
5 changed files
with
41 additions
and
17 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
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
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 |
---|---|---|
|
@@ -20,34 +20,37 @@ jobs: | |
steps: | ||
- name: Version | ||
id: version | ||
run: echo ::set-output name=value::${GITHUB_REF#refs/*/} | ||
run: echo "value=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
|
||
|
||
build-upload: | ||
name: Build and Upload | ||
build-packages: | ||
name: Build ${{ matrix.package }} package | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
package: [core, datascience] | ||
|
||
needs: | ||
- prepare | ||
|
||
env: | ||
ROOT_DIR: src/core | ||
ROOT_DIR: src/${{ matrix.package }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.10' | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install --upgrade pip wheel | ||
|
||
- name: Build | ||
run: | | ||
echo "${{ needs.prepare.outputs.version }}" > VERSION | ||
cd $ROOT_DIR && python setup.py bdist_wheel | ||
make build-${{ matrix.package }} version=${{ needs.prepare.outputs.version }} PYTHON=python | ||
- name: Upload release assets | ||
uses: AButler/[email protected] | ||
|
@@ -63,7 +66,6 @@ jobs: | |
password: ${{ secrets.PYPI_API_TOKEN }} | ||
packages_dir: '${{ env.ROOT_DIR }}/dist/' | ||
|
||
|
||
# update-dockerfiles: | ||
# name: Create pull request to update dockerfiles | ||
# runs-on: ubuntu-20.04 | ||
|
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.0.0 | ||
0.3.0 |