diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml new file mode 100644 index 000000000..8270e5b6e --- /dev/null +++ b/.github/workflows/install.yml @@ -0,0 +1,37 @@ +name: Install +on: + schedule: + - cron: '* 0 * * *' + +jobs: + install: + name: Miniconda + strategy: + # Keep running so we can see if other tests pass + fail-fast: false + matrix: + os: + - windows-latest + - ubuntu-20.04 + - macos-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: test + python-version: 3.8 + auto-activate-base: false + - shell: bash -l {0} + run: | + conda info + conda list + - name: Install omero-py + shell: bash -l {0} + run: | + conda install -c conda-forge omero-py + - name: Connect to IDR + shell: bash -l {0} + run: | + conda activate test + python connect.py diff --git a/connect.py b/connect.py new file mode 100644 index 000000000..c7b4d9f8f --- /dev/null +++ b/connect.py @@ -0,0 +1,11 @@ +import sys +from omero.gateway import BlitzGateway +HOST = 'ws://idr.openmicroscopy.org/omero-ws' +conn = BlitzGateway('public', 'public', + host=HOST, secure=True) +if conn.connect() is True: + print("connected") + conn.close() +else: + print("Connection failed") +sys.exit()