From 778b0ce40a3a51d689b012bc4d45381a690ce27a Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Fri, 3 Oct 2025 13:04:54 -0500 Subject: [PATCH 1/2] test uv --- .github/workflows/ci_cd.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 9e19c3b8c..5936e4549 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -332,11 +332,13 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: "Set up Python and activate virtual environment" - uses: ./.github/workflows/setup-python/ - with: - container-sha: ${{ needs.test-container-info.outputs.sha }} - python-version: ${{ matrix.python-version }} - + run: | + apt-get install git curl -y + curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" + echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV + uv python install ${{ matrix.python-version }} + python${{ matrix.python-version }} -m venv /env - name: "Install packages for testing" run: | . /env/bin/activate From 3ca10ea5f2e854c441d2c3cf0f3c1e1e8d6116da Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:06:15 +0000 Subject: [PATCH 2/2] chore: adding changelog file 1343.test.md [dependabot-skip] --- .github/workflows/ci_cd.yml | 9 +++++++++ doc/changelog.d/1343.test.md | 1 + 2 files changed, 10 insertions(+) create mode 100644 doc/changelog.d/1343.test.md diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 5936e4549..bd0c9244c 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -333,12 +333,21 @@ jobs: - name: "Set up Python and activate virtual environment" run: | + apt-get update apt-get install git curl -y curl -LsSf https://astral.sh/uv/install.sh | sh export PATH="$HOME/.local/bin:$PATH" echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV uv python install ${{ matrix.python-version }} + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py + /env/bin/python3.11 get-pip.py python${{ matrix.python-version }} -m venv /env + - name: Install pip if missing + run: | + if ! /env/bin/python3.11 -m pip --version; then + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py + /env/bin/python3.11 get-pip.py + fi - name: "Install packages for testing" run: | . /env/bin/activate diff --git a/doc/changelog.d/1343.test.md b/doc/changelog.d/1343.test.md new file mode 100644 index 000000000..3801068d7 --- /dev/null +++ b/doc/changelog.d/1343.test.md @@ -0,0 +1 @@ +Uv python install