Skip to content

Commit 55a3e71

Browse files
committed
Using an if instead of comments
1 parent 2b515c6 commit 55a3e71

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,15 @@ jobs:
466466
root_dir: ${{ github.workspace }}
467467

468468
test_windows:
469+
if: github.repository == ''
469470
name: "Local: Build and unit testing on Windows"
470471
runs-on: [self-hosted, Windows, pymapdl]
471472
timeout-minutes: 30
472473

473474
steps:
474475
- uses: actions/checkout@v3
475476

477+
# Skipping because it is installed locally.
476478
# - name: Setup Python
477479
# uses: actions/[email protected]
478480
# with:
@@ -508,15 +510,15 @@ jobs:
508510
# docker pull ghcr.io/pyansys/dpf-core:22.2dev
509511
# docker run -d --name dpfserver -p ${{ env.DPF_PORT }}:50052 ghcr.io/pyansys/dpf-core:22.2dev && echo "DPF Server active on port ${{ env.DPF_PORT }}."
510512

511-
# - name: "Unit testing"
512-
# shell: powershell
513-
# run: |
514-
# set PYMAPDL_PORT=
515-
# set PYMAPDL_START_INSTANCE=
516-
# python -m pytest -v -k "not test_database and not test_dpf" --durations=10 --maxfail=10 --reruns 7 --reruns-delay 3 --only-rerun MapdlExitedError --only-rerun EmptyRecordError --cov=ansys.mapdl.core --cov-report=xml --cov-report=html
513+
- name: "Unit testing"
514+
shell: powershell
515+
run: |
516+
set PYMAPDL_PORT=
517+
set PYMAPDL_START_INSTANCE=
518+
python -m pytest -v -k "not test_database and not test_dpf" --durations=10 --maxfail=10 --reruns 7 --reruns-delay 3 --only-rerun MapdlExitedError --only-rerun EmptyRecordError --cov=ansys.mapdl.core --cov-report=xml --cov-report=html
517519
518-
# - uses: codecov/codecov-action@v3
519-
# name: "Upload coverage to Codecov"
520+
- uses: codecov/codecov-action@v3
521+
name: "Upload coverage to Codecov"
520522

521523
release:
522524
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)