Skip to content

Commit

Permalink
ci: Do not delete examples directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 committed Apr 22, 2024
1 parent f822729 commit 05e9c69
Showing 2 changed files with 19 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -30,82 +30,82 @@ unittest: unittest-dev-241

unittest-dev-222:
@echo "Running unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --fluent-version=22.2 $(PYTESTEXTRA) || poetry run python -m pytest --fluent-version=22.2 $(PYTESTRERUN)

unittest-dev-231:
@echo "Running unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --fluent-version=23.1 $(PYTESTEXTRA) || poetry run python -m pytest --fluent-version=23.1 $(PYTESTRERUN)

unittest-dev-232:
@echo "Running unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --fluent-version=23.2 $(PYTESTEXTRA) || poetry run python -m pytest --fluent-version=23.2 $(PYTESTRERUN)

unittest-dev-241:
@echo "Running unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --fluent-version=24.1 $(PYTESTEXTRA) || poetry run python -m pytest --fluent-version=24.1 $(PYTESTRERUN)

unittest-dev-242:
@echo "Running unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --fluent-version=24.2 $(PYTESTEXTRA) || poetry run python -m pytest --fluent-version=24.2 $(PYTESTRERUN)

unittest-all-222:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=22.2 $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=22.2 $(PYTESTRERUN)

unittest-all-222-no-codegen:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=22.2 -m "not codegen_required" $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=22.2 -m "not codegen_required" $(PYTESTRERUN)

unittest-all-231:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=23.1 $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=23.1 $(PYTESTRERUN)

unittest-all-231-no-codegen:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=23.1 -m "not codegen_required" $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=23.1 -m "not codegen_required" $(PYTESTRERUN)

unittest-all-232:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=23.2 $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=23.2 $(PYTESTRERUN)

unittest-all-232-no-codegen:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=23.2 -m "not codegen_required" $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=23.2 -m "not codegen_required" $(PYTESTRERUN)

unittest-all-241:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=24.1 $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=24.1 $(PYTESTRERUN)

unittest-all-241-no-codegen:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=24.1 -m "not codegen_required" $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=24.1 -m "not codegen_required" $(PYTESTRERUN)

unittest-all-242:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=24.2 $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=24.2 $(PYTESTRERUN)

unittest-solvermode-242:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --fluent-version=24.2 --solvermode $(PYTESTEXTRA) || poetry run python -m pytest --fluent-version=24.2 --solvermode $(PYTESTRERUN)

unittest-all-242-no-codegen:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@poetry run python -m pytest --nightly --fluent-version=24.2 -m "not codegen_required" $(PYTESTEXTRA) || poetry run python -m pytest --nightly --fluent-version=24.2 -m "not codegen_required" $(PYTESTRERUN)

api-codegen:
@@ -122,12 +122,12 @@ build-doc-source:
@sudo rm -rf doc/source/api/solver/datamodel
@sudo rm -rf doc/source/api/solver/tui
@sudo rm -rf doc/source/api/solver/_autosummary/settings
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@xvfb-run make -C doc html

build-all-docs:
@python doc/settings_rstgen.py
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@xvfb-run make -C doc html

compare-flobject:
1 change: 1 addition & 0 deletions tests/test_data_model_cache.py
Original file line number Diff line number Diff line change
@@ -424,6 +424,7 @@ def test_cache_set_state(
assert final_cache == cache_rules[rules]


@pytest.mark.fluent_version(">=23.2")
def test_cache_per_session():
with (
pyfluent.launch_fluent(mode="meshing") as m1,

0 comments on commit 05e9c69

Please sign in to comment.