From c81c4d517c44f5f211ce2afdfdd4ee47a4ef4a8f Mon Sep 17 00:00:00 2001 From: krande Date: Sun, 17 Apr 2022 21:08:37 +0200 Subject: [PATCH] only do import of ifcopenshell as means of testing and rely on the successful completion of ci.yml as a triggering mechanism instead --- .github/workflows/ci-daily-build.yml | 6 ++++++ conda/Makefile | 11 +++++++++++ conda/meta.yaml | 22 ++++++++++------------ 3 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 conda/Makefile diff --git a/.github/workflows/ci-daily-build.yml b/.github/workflows/ci-daily-build.yml index cd5d95a044..644ac3f8fa 100644 --- a/.github/workflows/ci-daily-build.yml +++ b/.github/workflows/ci-daily-build.yml @@ -8,6 +8,12 @@ on: - .github/workflows/ci-daily-build.yml branches: - pr-daily-builds +# Only trigger, when the build workflow succeeded + workflow_run: + workflows: ["ci"] + types: + - completed + jobs: test: name: ${{ matrix.platform.distver }}-${{ matrix.pyver.name }} diff --git a/conda/Makefile b/conda/Makefile new file mode 100644 index 0000000000..c790fe69ec --- /dev/null +++ b/conda/Makefile @@ -0,0 +1,11 @@ +compile: + conda activate condabuild && conda-build -c conda-forge . --keep-old-work --python 3.10.4 + +debug: + conda activate condabuild && conda-debug -c conda-forge . --python 3.10.4 + +install: + conda env create -f environment.yml + +update: + conda env update -n conda-build --file environment.yml --prune \ No newline at end of file diff --git a/conda/meta.yaml b/conda/meta.yaml index 11eac696f7..e4e497ee41 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -54,18 +54,16 @@ test: - lark - networkx - xmlschema - source_files: - - test - - src/ifcopenshell-python/test/api - - src/ifcopenshell-python/test/util - - src/ifcopenshell-python/test/bootstrap.py - - src/ifcopenshell-python/test/test_file.py - - src/ifcopenshell-python/test/test_wall_opening.py - - src/ifcopenshell-python/test/__init__.py - commands: - #- pip install bcf-client - #- cd test && python tests.py - #- cd ../src/ifcopenshell-python/test && pytest -p no:pytest-blender + #source_files: + # - src/ifcopenshell-python/test/api + # - src/ifcopenshell-python/test/util + # - src/ifcopenshell-python/test/bootstrap.py + # - src/ifcopenshell-python/test/test_file.py + # - src/ifcopenshell-python/test/test_wall_opening.py + # - src/ifcopenshell-python/test/__init__.py + #commands: + # #- pip install bcf-client + # - cd ../src/ifcopenshell-python/test && pytest -p no:pytest-blender about: home: http://ifcopenshell.org