diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 8d20d0ce..4c5dcdd7 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -51,9 +51,9 @@ jobs: - name: Test building and packaging run: | (. .venv/build/${{ env.BIN_DIR }}/activate && cd partcad && python -m build && cd .. && deactivate) - (. .venv/build-cli/${{ env.BIN_DIR }}/activate && python -m pip install partcad/dist/partcad-*-py3-none-any.whl && deactivate) + (. .venv/build-cli/${{ env.BIN_DIR }}/activate && python -m pip instal --no-index --find-links=partcad/dist partcad && deactivate) (. .venv/build-cli/${{ env.BIN_DIR }}/activate && cd partcad-cli && python -m build && cd .. && deactivate) - name: Test installation run: | - (. .venv/install/${{ env.BIN_DIR }}/activate && python -m pip install partcad/dist/partcad-*-py3-none-any.whl && deactivate) - (. .venv/install/${{ env.BIN_DIR }}/activate && python -m pip install partcad-cli/dist/partcad_cli-*-py3-none-any.whl && deactivate) + (. .venv/install/${{ env.BIN_DIR }}/activate && python -m pip install --no-index --find-links=partcad/dist partcad && deactivate) + (. .venv/install/${{ env.BIN_DIR }}/activate && python -m pip install --no-index --find-links=partcad-cli/dist partcad_cli && deactivate) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 7e480c53..e4cbb535 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -31,6 +31,10 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.*') }} restore-keys: | ${{ runner.os }}-pip- + - uses: conda-incubator/setup-miniconda@v3 + with: + miniconda-version: latest + activate-environment: pc-conda-env - name: Install dependencies run: | python -m pip install --upgrade pip