Skip to content

Commit 20ecb76

Browse files
use object store instead of github releases
1 parent efa2abf commit 20ecb76

2 files changed

Lines changed: 28 additions & 19 deletions

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on:
55
- pull_request
66
- workflow_dispatch
77

8+
env:
9+
PKG_URL: https://nbg1.your-objectstorage.com/ipyvue3-packages/packages
10+
811
permissions:
9-
contents: write
12+
contents: read
1013

1114
jobs:
1215
lint:
@@ -51,6 +54,24 @@ jobs:
5154
./dist
5255
./js/*.tgz
5356
57+
- name: Publish dev artifacts to object storage
58+
if: github.event_name == 'push' && github.ref == 'refs/heads/vuetify3'
59+
env:
60+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
61+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
62+
AWS_REGION: nbg1
63+
AWS_ENDPOINT_URL_S3: https://nbg1.your-objectstorage.com
64+
S3_BUCKET: ipyvue3-packages
65+
run: |
66+
python -m pip install --upgrade awscli
67+
68+
aws s3 cp dist/ "s3://${S3_BUCKET}/packages/ipyvuetify/" \
69+
--recursive \
70+
--exclude "*" \
71+
--include "*.whl" \
72+
--endpoint-url "$AWS_ENDPOINT_URL_S3" \
73+
--region "$AWS_REGION"
74+
5475
- name: Upload components
5576
uses: actions/upload-artifact@v4
5677
with:
@@ -92,7 +113,11 @@ jobs:
92113
name: ipyvuetify-dist-${{ github.run_number }}
93114
- name: Install ipyvuetify
94115
run: |
95-
python -m pip install jupyter_core jupyter-packaging "jupyterlab<4" "$(find dist -name '*.whl')[test]"
116+
python -m pip install jupyter_core jupyter-packaging "jupyterlab<4" "$(find dist -name '*.whl')"
117+
python -m pip install pytest "pytest-playwright<0.6"
118+
python -m pip install "solara-ui[all] @ ${PKG_URL}/solara/solara_ui-1.57.3-py3-none-any.whl"
119+
python -m pip install "solara-server[starlette,dev] @ ${PKG_URL}/solara-server/solara_server-1.57.3-py3-none-any.whl"
120+
python -m pip install "pytest-ipywidgets[all] @ ${PKG_URL}/pytest-ipywidgets/pytest_ipywidgets-1.57.3-py3-none-any.whl"
96121
- name: Install chromium
97122
run: playwright install chromium
98123
- name: Run ui-tests
@@ -104,22 +129,6 @@ jobs:
104129
name: ipyvuetify-test-results
105130
path: test-results
106131

107-
release-vue3-dev:
108-
if: github.event_name == 'push' && github.ref == 'refs/heads/vuetify3'
109-
needs: [lint, test, ui-test]
110-
runs-on: ubuntu-22.04
111-
steps:
112-
- uses: actions/download-artifact@v4
113-
with:
114-
name: ipyvuetify-dist-${{ github.run_number }}
115-
116-
- name: Create or update vue3-dev release
117-
env:
118-
GH_TOKEN: ${{ github.token }}
119-
run: |
120-
gh release view vue3-dev --repo "${{ github.repository }}" || gh release create vue3-dev --repo "${{ github.repository }}" --title "vue3-dev" --notes "Auto-updated Vue 3 dev builds" --prerelease --target "${{ github.sha }}"
121-
gh release upload vue3-dev dist/*.whl js/*.tgz --repo "${{ github.repository }}" --clobber
122-
123132
release-dry-run:
124133
needs: [test]
125134
runs-on: ubuntu-22.04

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "ipyvuetify"
77
version = "3.0.0.alpha3"
88
description="Jupyter widgets based on vuetify UI components"
99
requires-python = ">=3.6"
10-
dependencies = ["ipyvue @ https://github.com/widgetti/ipyvue/releases/download/vue3-dev/ipyvue-3.0.0a5-py2.py3-none-any.whl"]
10+
dependencies = ["ipyvue @ https://nbg1.your-objectstorage.com/ipyvue3-packages/packages/ipyvue/ipyvue-3.0.0a5-py2.py3-none-any.whl"]
1111
keywords=["ipython", "jupyter", "widgets"]
1212
authors = [
1313
{name = "Mario Buikhuizen", email = "mbuikhuizen@gmail.com"},

0 commit comments

Comments
 (0)