55 - pull_request
66 - workflow_dispatch
77
8+ env :
9+ PKG_URL : https://nbg1.your-objectstorage.com/ipyvue3-packages/packages
10+
811permissions :
9- contents : write
12+ contents : read
1013
1114jobs :
1215 lint :
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 pixelmatch==0.3.0 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
0 commit comments