diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 1e9b38af5c..4c0165a7d1 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -26,19 +26,32 @@ jobs: legacy-examples: name: "Check legacy examples" runs-on: [ windows, pyedb, self-hosted ] + env: + PYEDB_CI_NO_DISPLAY: '1' steps: - name: "Install Git and clone project" uses: actions/checkout@v4 - - name: "Setup Python" - uses: actions/setup-python@v5 + - name: "Set up Python" + uses: ansys/actions/_setup-python@main with: - cache: 'pip' - python-version: '3.10' + python-version: ${{ env.MAIN_PYTHON_VERSION_WINDOWS_SELFHOSTED }} + use-cache: false + + - name: Create Python venv + run: | + python -m venv .venv + . .venv\Scripts\Activate.ps1 + + - name: "Update pip" + run: | + . .venv\Scripts\Activate.ps1 + python -m pip install -U pip - name: Install pyedb run: | - pip install . + . .venv\Scripts\Activate.ps1 + pip install .[full] - name: "Clone pyaedt on specific branch" uses: actions/checkout@v4