From 92a302e654c1c974925d91076209d7105f3228b3 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 31 Aug 2022 09:50:41 +0100 Subject: [PATCH 1/4] add workflow testing the installation of omero-py --- .github/workflows/install.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/install.yml diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml new file mode 100644 index 000000000..79c47e53c --- /dev/null +++ b/.github/workflows/install.yml @@ -0,0 +1,34 @@ +name: Install +on: + push: + +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 + run: | + python connect.py From 0488c037b0a6f29b1504b410fa4f4753c5657bd1 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 31 Aug 2022 09:50:58 +0100 Subject: [PATCH 2/4] connect to IDR --- connect.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 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() From 01b2931dbf7add179606492c075873370db58884 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 31 Aug 2022 10:15:30 +0100 Subject: [PATCH 3/4] activate --- .github/workflows/install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 79c47e53c..15f7fe4f1 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -30,5 +30,7 @@ jobs: run: | conda install -c conda-forge omero-py - name: Connect to IDR + shell: bash -l {0} run: | + conda activate test python connect.py From c427fcd99373ad6c0c2d28d322827d0523ba7afc Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 31 Aug 2022 10:41:22 +0100 Subject: [PATCH 4/4] schedule build --- .github/workflows/install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 15f7fe4f1..8270e5b6e 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -1,6 +1,7 @@ name: Install on: - push: + schedule: + - cron: '* 0 * * *' jobs: install: