From 752fd7941c11f2be84d3ac30b424eb578566828c Mon Sep 17 00:00:00 2001 From: Dmitry Maslennikov Date: Fri, 29 Nov 2024 07:27:55 +1100 Subject: [PATCH] iris as a service in ci --- .github/workflows/python-publish.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 6e550de..f17a130 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,12 +22,23 @@ jobs: fail-fast: false matrix: image: - - intersystemsdc/iris-community:latest - - intersystemsdc/iris-community:preview + - containers.intersystems.com/intersystems/iris-community:latest-cd + - containers.intersystems.com/intersystems/iris-community:latest-preview engine: - old - new runs-on: ubuntu-latest + services: + iris: + image: ${{ matrix.image }} + ports: + - 1972:1972 + options: >- + --health-cmd /irisHealth.sh + --health-start-period 10s + --health-interval 10s + --health-timeout 5s + --health-retries 5 steps: - uses: actions/checkout@v4 - name: Set up Python @@ -39,7 +50,8 @@ jobs: pip install tox - name: Run Tests run: | - tox -e py311${{ matrix.engine }} -- --container ${{ matrix.image }} + docker exec -it iris iris session iris -U%SYS '##class(Security.Users).UnExpireUserPasswords("*")' + tox -e py311${{ matrix.engine }} -- --dburi iris://_SYSTEM:SYS@localhost:1972/USER deploy: needs: test if: github.event_name != 'pull_request'