mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 05:46:51 +00:00
dcad4146b6
* WIP PR for daily builds of ifcopenshell * fix indentation in yaml * fix branch name * test daily builds using minimum occt ==v7.5.3 * chore: WIP daily builds - add tests * add test script bat/sh. Continue work in PR * fix: add more packages to test requires * fix: remove space in minimum version requirement of numpy * use manually installed MacOSX SDK on github runner. Minor rewrite of dynamic/static zlib conditional for conda_build. * fix MacOSX SDK address and made it platform conditional * make tests pass * try to skip ids tests for common icopenshell builds (caused failure on windows tests probably due to special character in filepath) * add conditional upload and testing of all available platform versions on github actions * fix wrong path to source files * fix errors in tests * remove test files and skip tests * only do import of ifcopenshell as means of testing and rely on the successful completion of ci.yml as a triggering mechanism instead * make conditional switch between original implementation of zlib suffix and new depending on conda packaging or not * point to occt v0.7.6 * make conditional import of BRepAdaptor_HCompCurve * try removing libxml2 include path * minor changes * Test nix builds * Test nix builds using only a single python version (in order to limit cpu/memory usage) * remove run check * remove testing of nix builds * Revert "Test nix builds using only a single python version (in order to limit cpu/memory usage)" This reverts commit22a552a9ac. * Revert "ci-py-only test modification" This reverts part of commitaf1e832f* update occt version to 7.6.2 in daily builds * Revert "Test nix builds" This reverts commitaf1e832f81. * Complete setups for local and cloud environments. And start by adding IfcPerson as a test case for the REST api communication * Revert changing checkout version of MVD
63 lines
2.2 KiB
YAML
63 lines
2.2 KiB
YAML
name: ci-ifcopenshell-daily
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- src/**
|
|
- conda/**
|
|
- .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 }}
|
|
runs-on: ${{ matrix.platform.distver }}
|
|
defaults:
|
|
run:
|
|
shell: bash -l {0}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
pyver: [
|
|
{ name: py39, distver: '3.9' },
|
|
{ name: py310, distver: '3.10'}
|
|
]
|
|
platform: [
|
|
{ name: Windows, distver: windows-2022, upload: 'true' },
|
|
{ name: Windows, distver: windows-2019, upload: 'false' },
|
|
{ name: Linux, distver: ubuntu-20.04, upload: 'false' },
|
|
{ name: Linux, distver: ubuntu-18.04, upload: 'true' },
|
|
{ name: macOS, distver: macos-11, upload: 'true' },
|
|
{ name: macOS, distver: macos-10.15, upload: 'false' }
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Download MacOSX SDK
|
|
if: ${{ matrix.platform.name == 'macOS' }}
|
|
run: |
|
|
curl -o MacOSX10.13.sdk.tar.xz -L https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.13.sdk.tar.xz && \
|
|
tar xf MacOSX10.13.sdk.tar.xz && \
|
|
sudo mv -v MacOSX10.13.sdk /opt/ && \
|
|
ls /opt/
|
|
- uses: seanmiddleditch/gha-setup-ninja@master
|
|
- uses: conda-incubator/setup-miniconda@v2 # https://github.com/conda-incubator/setup-miniconda
|
|
with:
|
|
activate-environment: conda-build
|
|
python-version: ${{ matrix.pyver.distver }}
|
|
environment-file: conda/environment.yml
|
|
- name: build, test and upload ifcopenshell
|
|
if: ${{ matrix.platform.upload == 'true' }}
|
|
run: |
|
|
conda-build . --python ${{ matrix.pyver.distver }} -c conda-forge --token ${{ secrets.ANACONDA_TOKEN }} --user ifcopenshell --no-remove-work-dir
|
|
- name: build & test ifcopenshell
|
|
if: ${{ matrix.platform.upload == 'false' }}
|
|
run: |
|
|
conda-build . --python ${{ matrix.pyver.distver }} -c conda-forge --no-remove-work-dir |