-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from BAMresearch/v0.2_annika
V0.2 annika
- Loading branch information
Showing
23 changed files
with
175 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# This workflow will install the environment, run the usecase param_wall | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
CACHE_NUMBER: 1 # increase to reset cache manually | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout repo content | ||
uses: actions/checkout@v2 | ||
- name: Setup Mambaforge | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: amworkflow | ||
use-mamba: true | ||
|
||
- name: Set cache date | ||
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: "/usr/share/miniconda3/envs/amworkflow" | ||
key: conda-${{ hashFiles('environment.yaml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} | ||
id: cache | ||
|
||
- name: Update environment | ||
run: mamba env update -n amworkflow -f environment.yaml | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
- name: Install package | ||
run: git clone https://github.com/tpaviot/pythonocc-utils.git && pip install ./pythonocc-utils | ||
|
||
- name: Run param_wall | ||
shell: bash -l {0} #new shell | ||
run: | | ||
python usecases/param_wall/param_wall.py | ||
#name: Test | ||
# | ||
#on: [push] | ||
# | ||
#jobs: | ||
# # Run tests | ||
# test_model: | ||
# name: Run tests | ||
# runs-on: ${{ matrix.operating-system }} | ||
# strategy: | ||
# matrix: | ||
# operating-system: [ubuntu-latest] | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: conda-incubator/setup-miniconda@v2 | ||
# with: | ||
# channels: conda-forge | ||
# channel-priority: strict | ||
# auto-update-conda: true | ||
# environment-file: environment.yaml | ||
# | ||
# - name: Install package | ||
# run: git clone https://github.com/tpaviot/pythonocc-utils.git && pip install ./pythonocc-utils | ||
# | ||
# - name: Run param_wall | ||
# shell: bash -l {0} #new shell | ||
# run: | | ||
# python usecases/param_wall/param_wall.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[project] | ||
name = "amworkflow" | ||
version = "0.2" | ||
authors = [ | ||
{name = "Annika Robens-Radermacher", email = "[email protected]"}, | ||
] | ||
|
||
description = "Automatic workflows for AM concrete appplications" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Intended Audience :: Science/Research", | ||
] | ||
license = {file = "LICENSE"} | ||
keywords = ["AM concrete", "workflow", "CAD"] | ||
dependencies = [ | ||
"fenics-dolfinx", | ||
"gmsh", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/BAMresearch/amworkflow" | ||
"Bug Tracker" = "https://github.com/BAMresearch/amworkflow/issues" | ||
|
||
[build-system] | ||
requires = ["setuptools", "wheel"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
name='amworkflow', | ||
version='', | ||
packages=['amworkflow.src', 'amworkflow.tests'], | ||
url='', | ||
license='MIT', | ||
author='Yuxiang He', | ||
author_email='', | ||
description='' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ geometry_parameter: | |
length: | ||
length: 100 | ||
endpoint: 180 | ||
num: 1 | ||
num: 2 | ||
height: | ||
length: 4.3 | ||
endpoint: 6.6 | ||
|