From 3cad0b554c7a88a8df2daf3a46b51b7187364eed Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Mon, 20 Nov 2023 11:46:59 +0100 Subject: [PATCH] WIP: deactivate other worklfows --- .github/workflows/legacy_examples.yml | 102 ++++++++++++------------ .github/workflows/legacy_tests.yml | 108 +++++++++++++------------- 2 files changed, 105 insertions(+), 105 deletions(-) diff --git a/.github/workflows/legacy_examples.yml b/.github/workflows/legacy_examples.yml index 78eae672e4..af1e391da3 100644 --- a/.github/workflows/legacy_examples.yml +++ b/.github/workflows/legacy_examples.yml @@ -1,51 +1,51 @@ -name: Examples - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - tags: - - 'v*' - branches: - - main - pull_request: - branches: [ main ] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -env: - ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} - PYEDB_USE_LEGACY: '1' - PYEDB_CI_NO_DISPLAY: '1' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - - legacy-examples: - name: "Check legacy examples" - runs-on: [ windows, pyedb, self-hosted ] - steps: - - name: "Install Git and clone project" - uses: actions/checkout@v4 - - - name: "Setup Python" - uses: actions/setup-python@v4 - with: - cache: 'pip' - python-version: '3.10' - - - name: Install pyedb - run: | - pip install . - - - name: Execute legacy examples (except pyaedt related and 01) - run: | - # Exclude example 01_edb_example.py because it is too long - $excluded_example = "01_edb_example.py" - # TODO: once pyaedt examples are passing, use -Recurse to cover them - Get-ChildItem -Path examples/legacy -Filter *.py -File | ? { $_.Name -ne $excluded_example } | ForEach-Object { - Write-Host "Executing example $($_.FullName)" - python $_.FullName - } +# name: Examples + +# # Controls when the workflow will run +# on: +# # Triggers the workflow on push or pull request events but only for the main branch +# push: +# tags: +# - 'v*' +# branches: +# - main +# pull_request: +# branches: [ main ] + +# concurrency: +# group: ${{ github.workflow }}-${{ github.ref }} +# cancel-in-progress: true + +# env: +# ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} +# PYEDB_USE_LEGACY: '1' +# PYEDB_CI_NO_DISPLAY: '1' + +# # A workflow run is made up of one or more jobs that can run sequentially or in parallel +# jobs: + +# legacy-examples: +# name: "Check legacy examples" +# runs-on: [ windows, pyedb, self-hosted ] +# steps: +# - name: "Install Git and clone project" +# uses: actions/checkout@v4 + +# - name: "Setup Python" +# uses: actions/setup-python@v4 +# with: +# cache: 'pip' +# python-version: '3.10' + +# - name: Install pyedb +# run: | +# pip install . + +# - name: Execute legacy examples (except pyaedt related and 01) +# run: | +# # Exclude example 01_edb_example.py because it is too long +# $excluded_example = "01_edb_example.py" +# # TODO: once pyaedt examples are passing, use -Recurse to cover them +# Get-ChildItem -Path examples/legacy -Filter *.py -File | ? { $_.Name -ne $excluded_example } | ForEach-Object { +# Write-Host "Executing example $($_.FullName)" +# python $_.FullName +# } diff --git a/.github/workflows/legacy_tests.yml b/.github/workflows/legacy_tests.yml index 8fac505202..6bb8bc453c 100644 --- a/.github/workflows/legacy_tests.yml +++ b/.github/workflows/legacy_tests.yml @@ -1,54 +1,54 @@ -name: Tests - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - tags: - - 'v*' - branches: - - main - pull_request: - branches: [ main ] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -env: - ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} - PYEDB_USE_LEGACY: '1' - PYEDB_CI_NO_DISPLAY: '1' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - - legacy-test: - name: "Check legacy tests" - runs-on: [ windows, pyedb, self-hosted ] - steps: - - name: "Install Git and clone project" - uses: actions/checkout@v4 - - - name: "Set up Python" - uses: ansys/actions/_setup-python@main - with: - python-version: '3.10' - use-cache: false - - - name: "Update pip" - run: python -m pip install -U pip - - - name: "Install Python library" - run: python -m pip install . - - - name: "Install test requirements" - run: python -m pip install .[tests] - - - name: "Executing legacy unit tests" - run: | - pytest -m "legacy and unit" -n auto -v - - - name: "Executing legacy system tests (distributing on multiple CPUs)" - run: | - pytest -m "legacy and system and not no_xdist" -n auto -v +# name: Tests + +# # Controls when the workflow will run +# on: +# # Triggers the workflow on push or pull request events but only for the main branch +# push: +# tags: +# - 'v*' +# branches: +# - main +# pull_request: +# branches: [ main ] + +# concurrency: +# group: ${{ github.workflow }}-${{ github.ref }} +# cancel-in-progress: true + +# env: +# ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} +# PYEDB_USE_LEGACY: '1' +# PYEDB_CI_NO_DISPLAY: '1' + +# # A workflow run is made up of one or more jobs that can run sequentially or in parallel +# jobs: + +# legacy-test: +# name: "Check legacy tests" +# runs-on: [ windows, pyedb, self-hosted ] +# steps: +# - name: "Install Git and clone project" +# uses: actions/checkout@v4 + +# - name: "Set up Python" +# uses: ansys/actions/_setup-python@main +# with: +# python-version: '3.10' +# use-cache: false + +# - name: "Update pip" +# run: python -m pip install -U pip + +# - name: "Install Python library" +# run: python -m pip install . + +# - name: "Install test requirements" +# run: python -m pip install .[tests] + +# - name: "Executing legacy unit tests" +# run: | +# pytest -m "legacy and unit" -n auto -v + +# - name: "Executing legacy system tests (distributing on multiple CPUs)" +# run: | +# pytest -m "legacy and system and not no_xdist" -n auto -v