diff --git a/.github/workflows/omero_plugin.yml b/.github/workflows/omero_plugin.yml index c14163c..62f0fb7 100644 --- a/.github/workflows/omero_plugin.yml +++ b/.github/workflows/omero_plugin.yml @@ -23,7 +23,7 @@ jobs: env: STAGE: app steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Checkout omero-test-infra uses: actions/checkout@master with: diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 81eccda..a735b04 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -7,14 +7,16 @@ jobs: name: Build and publish Python distribution to PyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' - name: Build a binary wheel and a source tarball run: | - python -mpip install wheel - python setup.py sdist bdist_wheel + python -mpip install build + python -m build - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@v1.3.0 + uses: pypa/gh-action-pypi-publish@v1.8.14 with: password: ${{ secrets.PYPI_PASSWORD }} diff --git a/.omeroci/app-build b/.omeroci/app-build new file mode 100755 index 0000000..3992193 --- /dev/null +++ b/.omeroci/app-build @@ -0,0 +1,19 @@ +#!/bin/bash + +source /infra/utils + +set -e +set -u +set -x + +cd $TARGET +DIR=$(setup_dir) + +export DJANGO_SETTINGS_MODULE=omeroweb.settings +export OMERODIR=/opt/omero/web/OMERO.web +export ICE_CONFIG=${OMERO_DIST}/etc/ice.config + +if [ -e test ]; then + echo Tests currently disabled + exit 1 +fi