/
vshmidt
/
streamlit
Обзор
Документация
Войти
/
vshmidt
/
streamlit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/workflows/component-template-e2e-tests.yml
98 строк
3 KB
Lukas Masuch
Migrate to uv package manager (#13622)
30 янв 2026, 01:23
Не верифицирован
30 янв 2026, 01:23
4d386cc
Код
Авторство
О чём код?
name: Component-template Repo E2E Tests on: push: branches: - "develop" pull_request: types: [opened, synchronize, reopened] paths-ignore: # Don't run CI if changes are only in documentation/spec folders: - "specs/**" - "agent-knowledge/**" - "wiki/**" jobs: component-template-e2e-tests: runs-on: ubuntu-latest-8-cores steps: - name: Checkout Streamlit code uses: actions/checkout@v6 with: persist-credentials: false submodules: "recursive" fetch-depth: 2 - name: Enable Corepack run: corepack enable - name: Setup Node uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: "yarn" cache-dependency-path: "component-lib/yarn.lock" - name: Set Python version vars uses: ./.github/actions/build_info - name: Set up Python ${{ env.PYTHON_MAX_VERSION }} uses: actions/setup-python@v6 with: python-version: "${{ env.PYTHON_MAX_VERSION }}" - name: Setup virtual env uses: ./.github/actions/make_init with: python_version: ${{ env.PYTHON_MAX_VERSION }} - name: Build Package timeout-minutes: 120 run: make package - name: Return path to Streamlit wheel id: streamlit_wheel shell: bash run: | streamlit_wheel=$(find "./lib/dist" -maxdepth 1 -name '*.whl') streamlit_wheel=$(readlink -e "${streamlit_wheel}") echo "output_file=${streamlit_wheel}" >> $GITHUB_OUTPUT - name: Install node dependencies for streamlit-component-lib working-directory: component-lib shell: bash run: yarn install - name: Build streamlit-component-lib package working-directory: component-lib shell: bash run: yarn run build && npm pack - name: Return path to Component Library working-directory: component-lib id: component_library shell: bash run: | component_lib_tar_gz=$(find "./" -maxdepth 1 -name 'streamlit-component-lib-*.tgz') component_lib_tar_gz=$(readlink -e "${component_lib_tar_gz}") echo "output_file=${component_lib_tar_gz}" >> $GITHUB_OUTPUT - name: Checkout streamlit/component-template uses: actions/checkout@v6 with: persist-credentials: false repository: streamlit/component-template path: ./component-template - name: Build components wheels uses: ./component-template/.github/actions/build_component_wheels id: component_wheels with: custom_streamlit_component_lib_file: >- ${{ steps.component_library.outputs.output_file }} - name: Run E2E tests uses: ./component-template/.github/actions/run_e2e with: python_version: ${{ env.PYTHON_MAX_VERSION }} streamlit_wheel_file: ${{ steps.streamlit_wheel.outputs.output_file }}