Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic publishing of wheel and docker #202

Merged
merged 63 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
c916dd8
Test pip installation
ad-daniel Jan 17, 2022
b134ac5
Trigger
ad-daniel Jan 17, 2022
6a42f3f
Fix
ad-daniel Jan 17, 2022
23cc3e4
Minor
ad-daniel Jan 17, 2022
7f170ce
Merge branch 'master' into feature-automatic-test
passalis Jan 19, 2022
f11129f
Updated wheel test
passalis Jan 19, 2022
5466a01
Added libopenblas install
passalis Jan 19, 2022
f9fbe9f
Temporary test disable
passalis Jan 19, 2022
ff7351e
Temporary test disable
passalis Jan 19, 2022
2849f75
Added libsndfile1 dependency
passalis Jan 19, 2022
6c709ef
Restored disabled test
passalis Jan 19, 2022
c1878f8
New wheel building pipeline
passalis Jan 19, 2022
758d95e
Update build_wheel.sh
passalis Jan 19, 2022
2140e32
Added libboost-dev dep
passalis Jan 20, 2022
19033ea
Update installation.md
passalis Jan 20, 2022
116fc14
Switch to sdist
passalis Jan 20, 2022
dec5392
sdist workflow
passalis Jan 20, 2022
20a3f95
Update tests_suite.yml
passalis Jan 20, 2022
79285e5
Added numpy include dirs
passalis Jan 20, 2022
321dce1
Merge branch 'feature-automatic-test' of https://github.com/opendr-eu…
passalis Jan 20, 2022
535c691
Disabled two 3d detection tests
passalis Jan 20, 2022
21d7575
Disabled three 3d detection tests
passalis Jan 20, 2022
724ecd2
Disabled five 3d detection tests
passalis Jan 20, 2022
693ea96
Disabled all 3d detection tests
passalis Jan 20, 2022
7e30ee9
Disabled model download - 3d test
passalis Jan 20, 2022
1b09f3e
Disabled everything?
passalis Jan 20, 2022
1aeb275
Removed imports from 3d object detection test
passalis Jan 20, 2022
52a993b
Import test
passalis Jan 20, 2022
d28155c
Import test
passalis Jan 20, 2022
dd2c778
Import test
passalis Jan 20, 2022
68dd58d
Import test
passalis Jan 20, 2022
51f9b04
Import test
passalis Jan 20, 2022
0a511be
Import test
passalis Jan 20, 2022
b8f941c
Restored test
passalis Jan 20, 2022
a4dd43f
Disabled object detection 3d test
passalis Jan 20, 2022
d9a58e6
Minimal
ad-daniel Jan 21, 2022
fca7395
Refactor workflow
ad-daniel Jan 21, 2022
c877aed
disable temporarely
ad-daniel Jan 21, 2022
bee8975
Fix docker mobile manipulation
ad-daniel Jan 21, 2022
073d2f1
Re-enable test
ad-daniel Jan 21, 2022
2b39395
add badge
ad-daniel Jan 21, 2022
b28a1fc
Fix changelog
ad-daniel Jan 21, 2022
198c68a
remove test install reference
ad-daniel Jan 21, 2022
9172526
Merge branch 'feature-automatic-test' into feature-automatic-publish
ad-daniel Jan 21, 2022
41c3488
test build process
ad-daniel Jan 21, 2022
b509537
Fix
ad-daniel Jan 21, 2022
1cef581
version bump
ad-daniel Jan 21, 2022
95d0936
manual trigger
ad-daniel Jan 21, 2022
297e48d
Fix workflow
ad-daniel Jan 21, 2022
f50a359
Minor
ad-daniel Jan 21, 2022
b118840
add cuda docker
ad-daniel Jan 21, 2022
b9d08a8
Minor
ad-daniel Jan 21, 2022
aa85d3f
Fix Token
ad-daniel Jan 21, 2022
f2e3867
Publish wheel to testpypi
ad-daniel Jan 21, 2022
8502f5e
Cleanup
ad-daniel Jan 21, 2022
fcc54cf
Specify version
ad-daniel Jan 24, 2022
1fe4d2f
Merge branch 'master' into feature-automatic-publish
ad-daniel Jan 24, 2022
15978fe
cleanup and check
ad-daniel Jan 24, 2022
c66b24f
Fix
ad-daniel Jan 24, 2022
b3e2a3a
Docker push test
ad-daniel Jan 24, 2022
c800605
remove if
ad-daniel Jan 25, 2022
c32b50d
Prepare for merge
ad-daniel Jan 25, 2022
520079e
Fix pypi credentials
ad-daniel Jan 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Publisher

# Trigger on new github release, a tag with format vX.Y.Z is expected (used to tag the docker)
on:
release:
types: [published]

env:
OPENDR_VERSION: ${{ github.event.release.tag_name }}

defaults:
run:
shell: bash

jobs:
publish-wheel:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install prerequisites
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build Wheel
run: |
./bin/build_wheel.sh
- name: Upload Wheel
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run : |
twine upload dist/*
publish-docker-cpu:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build Docker Image
run: docker build --tag opendr-toolkit:cpu_$OPENDR_VERSION --file Dockerfile .
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Publish Image
run: |
docker tag opendr-toolkit:cpu_$OPENDR_VERSION opendr/opendr-toolkit:cpu_$OPENDR_VERSION
docker push opendr/opendr-toolkit:cpu_$OPENDR_VERSION
publish-docker-cuda:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build Docker Image
run: docker build --tag opendr-toolkit:cuda_$OPENDR_VERSION --file Dockerfile-cuda .
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Publish Image
run: |
docker tag opendr-toolkit:cuda_$OPENDR_VERSION opendr/opendr-toolkit:cuda_$OPENDR_VERSION
docker push opendr/opendr-toolkit:cuda_$OPENDR_VERSION
3 changes: 1 addition & 2 deletions .github/workflows/test_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
source venv/bin/activate
wget https://raw.githubusercontent.com/opendr-eu/opendr/master/dependencies/pip_requirements.txt
cat pip_requirements.txt | xargs -n 1 -L 1 pip install
# Test new package
pip install opendr-toolkit
python -m unittest discover -s tests/sources/tools/${{ matrix.package }}
test-docker:
Expand Down Expand Up @@ -89,7 +88,7 @@ jobs:
- control/mobile_manipulation
- simulation/human_model_generation
- control/single_demo_grasp
#- perception/object_tracking_3d
# - perception/object_tracking_3d
runs-on: ${{ matrix.os }}
steps:
- name: Set up Python 3.8
Expand Down
2 changes: 1 addition & 1 deletion src/opendr/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "1.0"
__version__ = "1.0.0"