Skip to content

Commit

Permalink
ci: use dedicate pygeometry-ci-2 runner (#1693)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
RobPasMue and pyansys-ci-bot authored Jan 27, 2025
1 parent 14ca699 commit 3ed7fdd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,7 @@ jobs:
testing-windows:
name: Testing and coverage (Windows)
needs: [smoke-tests, manifests]
# runs-on: [self-hosted, Windows, pygeometry]
runs-on: # TODO: Waiting for ansys-network runner to be updated
group: pyansys-self-hosted
labels: [self-hosted, Windows, pygeometry]
runs-on: [self-hosted, Windows, pygeometry]
continue-on-error: ${{ matrix.experimental }}
env:
SKIP_UNSTABLE: false
Expand Down Expand Up @@ -337,10 +334,7 @@ jobs:
docs:
name: Documentation
needs: [docs-style]
# Doc build performed on self-hosted runners outside the Ansys network only
runs-on:
group: pyansys-self-hosted
labels: [Windows, pygeometry]
runs-on: [self-hosted, Windows, pygeometry]
env:
PYVISTA_OFF_SCREEN: true
steps:
Expand Down Expand Up @@ -650,10 +644,7 @@ jobs:
build-windows-container:
name: Building Geometry Service - Windows
# runs-on: [self-hosted, Windows, pygeometry]
runs-on: # TODO: Waiting for ansys-network runner to be updated
group: pyansys-self-hosted
labels: [self-hosted, Windows, pygeometry]
runs-on: [self-hosted, Windows, pygeometry]
needs: [fetch-release-artifacts]
strategy:
fail-fast: false
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/nightly_docker_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ jobs:
name: Windows Core Service
needs: manifests
if: needs.manifests.outputs.skip_core_windows == 0
# runs-on: [self-hosted, Windows, pygeometry]
runs-on: # TODO: Waiting for ansys-network runner to be updated
group: pyansys-self-hosted
labels: [self-hosted, Windows, pygeometry]
runs-on: [self-hosted, Windows, pygeometry]
env:
PYVISTA_OFF_SCREEN: true
steps:
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/1693.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use dedicate pygeometry-ci-2 runner
17 changes: 12 additions & 5 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,30 @@ def get_wheelhouse_assets_dictionary():
time.sleep(2)

if content is None:
raise requests.exceptions.RequestException("Failed to retrieve the latest release.")

# Just point to the latest version
assets_context_version = json.loads(content)["name"]
print("Adapting URL to point to the latest version... (hack)")
assets_context_version = "dev"
else:
# Just point to the latest version
assets_context_version = json.loads(content)["name"]
else:
assets_context_version = f"v{__version__}"

assets = {}
for assets_os, assets_runner in zip(assets_context_os, assets_context_runners):
download_links = []
for assets_py_ver in assets_context_python_versions:
if assets_context_version == "dev":
prefix_url = "https://github.com/ansys/pyansys-geometry/releases/latest/download"
else:
prefix_url = (
f"https://github.com/ansys/pyansys-geometry/releases/download/{assets_context_version}",
)
temp_dict = {
"os": assets_os,
"runner": assets_runner,
"python_versions": assets_py_ver,
"latest_released_version": assets_context_version,
"prefix_url": f"https://github.com/ansys/pyansys-geometry/releases/download/{assets_context_version}", # noqa: E501
"prefix_url": prefix_url,
}
download_links.append(temp_dict)

Expand Down

0 comments on commit 3ed7fdd

Please sign in to comment.