chore(deps): bump astral-sh/setup-uv from 7.1.2 to 7.1.3 #339
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Copilot Setup Steps' | |
| # Automatically run the setup steps when they are changed to allow for easy validation, and | |
| # allow manual testing through the repository's "Actions" tab | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| env: | |
| NPM_VERSION: 10.9.2 | |
| PYTHON_VERSION: 3.12 | |
| DENO_VERSION: '~1.37' | |
| MOCHA_REPORTER_JUNIT: true # Use the mocha-multi-reporters and send output to both console (spec) and JUnit (mocha-junit-reporter). Also enables a reporter which exits the process running the tests if it haven't already. | |
| CACHE_NPM_DEPS: cache-npm | |
| CACHE_OUT_DIRECTORY: cache-out-directory | |
| CACHE_PIP_DEPS: cache-pip | |
| jobs: | |
| # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| # Set the permissions to the lowest permissions possible needed for your steps. | |
| # Copilot will be given its own token for its operations. | |
| permissions: | |
| # If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete. | |
| contents: read | |
| # You can define any steps you want, and they will run before the agent starts. | |
| # If you do not check out your code, Copilot will do this for you. | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Use Node ${{env.NODE_VERSION}} | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Cache npm files | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{runner.os}}-${{env.CACHE_NPM_DEPS}}-${{hashFiles('package-lock.json')}} | |
| - name: Cache the out/ directory | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: ./out | |
| key: ${{runner.os}}-${{env.CACHE_OUT_DIRECTORY}}-${{hashFiles('src/**')}} | |
| # This is faster than running `npm ci`, we do not want to build zmq, etc. | |
| # Let that happen in other jobs, this job needs to be fast | |
| - name: npm ci | |
| run: npm ci --ignore-scripts --prefer-offline --no-audit | |
| - name: npm run postinstall | |
| run: npm run postinstall | |
| - name: Install Playwright browsers (if needed) | |
| run: | | |
| if [ -d "node_modules/playwright" ]; then | |
| echo "Installing Playwright browsers..." | |
| npx playwright install --with-deps | |
| else | |
| echo "Playwright not found, skipping browser installation" | |
| fi | |
| continue-on-error: true | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3 # v7 | |
| - name: Setup Venv | |
| run: | | |
| uv venv | |
| source .venv/bin/activate | |
| uv pip install pip | |
| uv pip install -r build/venv-test-ipywidgets8-requirements.txt | |
| uv pip install jupyter notebook ipykernel |