diff --git a/.github/workflows/publisher.yml b/.github/workflows/publisher.yml new file mode 100644 index 0000000000..6dc43014d2 --- /dev/null +++ b/.github/workflows/publisher.yml @@ -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 diff --git a/.github/workflows/test_packages.yml b/.github/workflows/test_packages.yml index e7a3b718ea..13cd407950 100644 --- a/.github/workflows/test_packages.yml +++ b/.github/workflows/test_packages.yml @@ -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: @@ -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 diff --git a/src/opendr/_version.py b/src/opendr/_version.py index 4c67cd2681..c98a588823 100644 --- a/src/opendr/_version.py +++ b/src/opendr/_version.py @@ -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"