From eceb1f4688389b0eaf5e42440fa469c231d92af3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 19 Mar 2024 10:18:13 +0000 Subject: [PATCH] Update CI package locks --- .github/workflows/test.yaml | 62 ++++++++++++++++++++++++++++++------- 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f18ef3f60..2bdb943ca 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -204,6 +204,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: "pip" - uses: actions/download-artifact@v2 with: @@ -229,14 +230,26 @@ jobs: id: install_no_lock run: | mkdir -p .ci-package-locks/integration - pip install ".[dev, documentation, extra, flask, pytest]" "voila~=${{ matrix.voila }}" "jupyterlab<4" "pydantic<2" "playwright==1.41.2" - (cd packages/solara-enterprise && pip install ".[ssg,auth]" "ipywidgets~=${{ matrix.ipywidgets }}") - pip freeze > ${{ env.LOCK_FILE_LOCATION }} + for file in dist/*.whl; do + pip install $file"[dev, documentation, extra, flask, pytest]" + done + for file in packages/solara-enterprise/dist/*.whl; do + pip install $file"[ssg,auth]" + done + pip install "voila~=${{ matrix.voila }}" "jupyterlab<4" "pydantic<2" "playwright==1.41.2" "ipywidgets~=${{ matrix.ipywidgets }}" + pip freeze --exclude solara --exclude solara-enterprise > ${{ env.LOCK_FILE_LOCATION }} git diff --quiet && echo "::set-output name=exit_code::'NO_DIFF'" - name: Install if: github.event_name != 'schedule' && steps.prepare.outputs.locks_exist == 'true' - run: pip install -r ${{ env.LOCK_FILE_LOCATION }} + run: | + pip install -r ${{ env.LOCK_FILE_LOCATION }} + for file in dist/*.whl; do + pip install $file"[dev, documentation, extra, flask, pytest]" + done + for file in packages/solara-enterprise/dist/*.whl; do + pip install $file"[ssg,auth]" + done - name: Install playwright run: playwright install @@ -293,6 +306,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: "pip" - uses: actions/download-artifact@v2 with: @@ -318,16 +332,28 @@ jobs: if: github.event_name == 'schedule' || steps.prepare.outputs.locks_exist == 'false' run: | mkdir -p .ci-package-locks/integration-vue3 - pip install ".[dev, documentation, flask, pytest, server]" "jupyterlab<4" "voila~=${{ matrix.voila }}" "playwright==1.41.2" "pydantic<2" - (cd packages/solara-enterprise && pip install ".[ssg,auth]" "ipywidgets~=${{ matrix.ipywidgets }}") + for file in dist/*.whl; do + pip install $file"[dev, documentation, extra, flask, pytest]" + done + for file in packages/solara-enterprise/dist/*.whl; do + pip install $file"[ssg,auth]" + done + pip install "jupyterlab<4" "voila~=${{ matrix.voila }}" "playwright==1.41.2" "pydantic<2" "ipywidgets~=${{ matrix.ipywidgets }}" pip install jupyter_core jupyter-packaging pip install --pre ipyvue ipyvuetify - pip freeze > ${{ env.LOCK_FILE_LOCATION }} + pip freeze --exclude solara --exclude solara-enterprise > ${{ env.LOCK_FILE_LOCATION }} git diff --quiet && echo "::set-output name=exit_code::'NO_DIFF'" - name: Install if: github.event_name != 'schedule' && steps.prepare.outputs.locks_exist == 'true' - run: pip install -r ${{ env.LOCK_FILE_LOCATION }} + run: | + pip install -r ${{ env.LOCK_FILE_LOCATION }} + for file in dist/*.whl; do + pip install $file"[dev, documentation, extra, flask, pytest]" + done + for file in packages/solara-enterprise/dist/*.whl; do + pip install $file"[ssg,auth]" + done - name: Install playwright run: playwright install @@ -402,14 +428,26 @@ jobs: if: github.event_name == 'schedule' || steps.prepare.outputs.locks_exist == 'false' run: | mkdir -p .ci-package-locks/unit - pip install ".[dev, extra]" "jupyterlab<4" diskcache redis "ipywidgets~=${{ matrix.ipywidgets }}" - (cd packages/solara-enterprise && pip install ".[ssg,auth]") - pip freeze > ${{ env.LOCK_FILE_LOCATION }} + for file in dist/*.whl; do + pip install $file"[dev, extra]" + done + for file in packages/solara-enterprise/dist/*.whl; do + pip install $file"[ssg,auth]" + done + pip install "jupyterlab<4" diskcache redis "ipywidgets~=${{ matrix.ipywidgets }}" + pip freeze --exclude solara --exclude solara-enterprise > ${{ env.LOCK_FILE_LOCATION }} git diff --quiet && echo "::set-output name=exit_code::'NO_DIFF'" - name: Install if: github.event_name != 'schedule' && steps.prepare.outputs.locks_exist == 'true' - run: pip install -r ${{ env.LOCK_FILE_LOCATION }} + run: | + pip install -r ${{ env.LOCK_FILE_LOCATION }} + for file in dist/*.whl; do + pip install $file"[dev, extra]" + done + for file in packages/solara-enterprise/dist/*.whl; do + pip install $file"[ssg,auth]" + done - name: Start Redis if: matrix.os != 'windows' && steps.install_no_lock.outputs.exit_code != 'NO_DIFF'