diff --git a/.github/workflows/code-embedder.yaml b/.github/workflows/code-embedder.yaml index 9e4af4b..51187b9 100644 --- a/.github/workflows/code-embedder.yaml +++ b/.github/workflows/code-embedder.yaml @@ -38,22 +38,9 @@ jobs: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('uv.lock') }} - # # Manually add extras used in snippet - # - name: 📥 Install the project - # run: uv pip install ".[loguru]" - + # Manually add extras used in snippet - name: 📥 Install the project - run: | - uv sync --all-extras --dev - uv pip install . - - - name: 🏞️ Activate virtual environment - run: | - source .venv/bin/activate - echo PATH=$PATH >> $GITHUB_ENV - - - name: 📥 Install the main package - run: uv pip install . + run: uv pip install ".[loguru]" - name: 🪄 Format raw code snippets with ruff run: | diff --git a/.github/workflows/code-embedder_test.yaml b/.github/workflows/code-embedder_test.yaml deleted file mode 100644 index 7e1ffd0..0000000 --- a/.github/workflows/code-embedder_test.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: 🪄 Code Embedder test - -on: - push: - branches: - - main - pull_request: - branches: - - main - -permissions: - contents: write - -jobs: - code_embedder: - runs-on: ubuntu-latest - env: - PYTHON_VERSION: "3.12" - UV_SYSTEM_PYTHON: 1 - - steps: - - name: 🛎️ Checkout - uses: actions/checkout@v4 - - - name: 🐍 Install uv with caching - uses: astral-sh/setup-uv@v4 - with: - enable-cache: true - - - name: 🐍 Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5 - with: - python-version: ${{ env.PYTHON_VERSION }} - - - name: 💾 Setup pip cache - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('uv.lock') }} - - - name: 📥 Install the project - run: | - uv sync --all-extras --dev - uv pip install . - - - name: 🏞️ Activate virtual environment - run: | - source .venv/bin/activate - echo PATH=$PATH >> $GITHUB_ENV - - - name: 🪄 Format raw code snippets with ruff - run: | - pipx install ruff - ruff format dev/readme_snippets/ - - - name: 🪄 Format print comments in code snippets - run: python dev/scripts/format_snippet_prints.py - - - name: 📝 Run code embedder - uses: kvankova/code-embedder@v1.1.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}