Skip to content

New openapi.json with functions ✨ #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 28, 2025
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
46 changes: 3 additions & 43 deletions .github/workflows/build-python-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,51 +52,11 @@ jobs:
echo "github.workflow.id: ${{github.workflow.id}}"
echo "github.run_id: ${{github.run_id}}"
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: osparc_python_wheels
path: clients/python/artifacts/dist/

test-20-04:
name: python ${{ matrix.python-version }} ubuntu-20.04
runs-on: ubuntu-20.04
needs: build
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, 3.10.14]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install uv
uses: yezz123/setup-uv@v4
- name: Pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-{{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip
- name: Download wheels
uses: actions/download-artifact@v3
with:
name: osparc_python_wheels
path: clients/python/artifacts/dist/
- name: Install and Test
run: |
python -m venv .venv
source .venv/bin/activate
python -m pip install pytest
python -m pip install clients/python/artifacts/dist/${{needs.build.outputs.osparc}} --find-links=clients/python/artifacts/dist
cd clients/python
make install-unit-test
uv pip list | grep osparc
pytest -v --ignore=/artifacts/client --ignore=test/e2e

test-latest:
name: python ${{ matrix.python-version }} ubuntu-latest
Expand All @@ -122,7 +82,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: osparc_python_wheels
path: clients/python/artifacts/dist/
Expand All @@ -139,5 +99,5 @@ jobs:
publish:
name: Publish clients
if: github.event_name == 'push' && ( startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' )
needs: [test-20-04, test-latest]
needs: [test-latest]
uses: ./.github/workflows/publish-python-client.yml
2 changes: 1 addition & 1 deletion .github/workflows/publish-python-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
make devenv
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: osparc_python_wheels
path: osparc_python_wheels/
Expand Down
Loading
Loading