From 7949cde1a1d54a9d5ef53b4ee65b346fcbd455e0 Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:23:35 -0800 Subject: [PATCH] fix docs --- .github/workflows/pages.yml | 2 +- .github/workflows/test_code.yml | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ba9d0e2b..140bd202 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -34,7 +34,7 @@ jobs: SIMCLOUD_APIKEY: ${{ secrets.SIMCLOUD_APIKEY }} run: | make uv - make install + make install test-data uv run jb build docs - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/.github/workflows/test_code.yml b/.github/workflows/test_code.yml index c1bb6c6b..a693bdc7 100644 --- a/.github/workflows/test_code.yml +++ b/.github/workflows/test_code.yml @@ -84,17 +84,28 @@ jobs: run: uv run pytest gplugins/${{ matrix.plugin }} test_code_coverage: runs-on: ubuntu-latest - container: ghcr.io/gdsfactory/gdsfactory:main steps: - uses: actions/checkout@v4 + - name: Setup Mambaforge + uses: conda-incubator/setup-miniconda@v3 + with: + miniforge-version: latest + activate-environment: env + use-mamba: true + python-version: "3.11" + - name: Add conda to system path + run: | + echo $CONDA/bin >> $GITHUB_PATH + - name: Install uv + uses: astral-sh/setup-uv@v4 - name: Install dependencies + env: + UV_SYSTEM_PYTHON: 1 run: | - make uv + sudo apt-get install -y libglu1-mesa + make uv venv test-data make install - - name: Run tests - env: - SIMCLOUD_APIKEY: ${{ secrets.SIMCLOUD_APIKEY }} - GDSFACTORY_DISPLAY_TYPE: klayout + - name: Test with pytest run: | uv run pytest --cov=gplugins - name: Upload coverage to Codecov