Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,40 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools tox tox-gh-actions

- name: Check out rep-deployments
uses: actions/checkout@v3
with:
repository: ansys/rep-deployments
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
submodules: true
path: rep-deployments

- uses: KengoTODA/actions-setup-docker-compose@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Login in Github Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: pyansys-ci-bot
password: ${{ secrets.PYANSYS_CI_BOT_PACKAGE_TOKEN }}

- name: Start services
run: |
docker-compose pull
LOCALHOST_ADDR=localhost docker-compose up -d keycloak
echo "Waiting a few sec ..."
sleep 5
LOCALHOST_ADDR=localhost docker-compose up -d
working-directory: ./rep-deployments/docker-compose

- name: Test with tox
run: tox -e ${{ matrix.cfg.toxenv }}-noeval-coverage
env:
REP_TEST_URL: https://repkube.westeurope.cloudapp.azure.com/dev/rep
REP_TEST_URL: https://localhost:8443/rep
REP_TEST_USERNAME: repadmin
REP_TEST_PASSWORD: ${{ secrets.REPADMIN_PASSWORD }}
REP_TEST_PASSWORD: repadmin

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
Expand Down
5 changes: 4 additions & 1 deletion ansys/rep/client/jms/api/jms_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,11 @@ def _monitor_operation(jms_api: JmsApi, operation_id: str, interval: float = 1.0
op = jms_api.get_operation(id=operation_id)
if op:
done = op.finished
progress = None
if op.progress is not None:
progress = f"{op.progress * 100.0}%"
log.info(
f"Operation {op.name} - progress={op.progress * 100.0}%, "
f"Operation {op.name} - progress={progress}, "
f"succeeded={op.succeeded}, finished={op.finished}"
)
time.sleep(interval)
Expand Down