From f0761221402d083cb2c90caee1c4d48033262200 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Thu, 19 Dec 2024 15:36:04 +0000 Subject: [PATCH] testing scripts --- .github/workflows/build-bazel.yml | 2 +- ...st-python-install-sdist.yml => build-python-sdist.yml} | 8 +++++--- .github/workflows/build-wheels-push.yml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) rename .github/workflows/{test-python-install-sdist.yml => build-python-sdist.yml} (87%) diff --git a/.github/workflows/build-bazel.yml b/.github/workflows/build-bazel.yml index 3d92177760..03d6a8219a 100644 --- a/.github/workflows/build-bazel.yml +++ b/.github/workflows/build-bazel.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: bazelbuild/setup-bazelisk@v2 + - uses: bazelbuild/setup-bazelisk@v3 - name: Mount bazel cache # Optional uses: actions/cache@v3 diff --git a/.github/workflows/test-python-install-sdist.yml b/.github/workflows/build-python-sdist.yml similarity index 87% rename from .github/workflows/test-python-install-sdist.yml rename to .github/workflows/build-python-sdist.yml index 8fce857ee2..cfea774f7e 100644 --- a/.github/workflows/test-python-install-sdist.yml +++ b/.github/workflows/build-python-sdist.yml @@ -1,4 +1,4 @@ -name: test-python-install-sdist +name: build-python-sdist on: [push, pull_request] @@ -17,7 +17,7 @@ jobs: run: pipx run twine check dist/* - name: install highspy - run: python3 -m pip install dist/* + run: python3 -m pip install dist/*.tar.gz - name: Test Python Examples run: | @@ -40,7 +40,9 @@ jobs: run: pipx run twine check dist/* - name: install highspy - run: python -m pip install dist/highspy* + run: | + $item = Get-ChildItem dist + python -m pip install "$item" - name: Test Python Examples run: | diff --git a/.github/workflows/build-wheels-push.yml b/.github/workflows/build-wheels-push.yml index 3b0bd26e95..4f8daac27a 100644 --- a/.github/workflows/build-wheels-push.yml +++ b/.github/workflows/build-wheels-push.yml @@ -93,7 +93,7 @@ jobs: environment: name: testpypi - url: https://testpypi.org/p/highspy + url: https://test.pypi.org/p/highspy permissions: id-token: write # IMPORTANT: mandatory for trusted publishing