Issue1890 nominal start values #1523
Workflow file for this run
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
# Workflow for CI tests | |
name: CI-documentation-and-format | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master, maint_*, release* ] | |
pull_request: | |
branches: [ master, maint_*, release* ] | |
# Allows you to run this workflow manually from the Actions tab | |
# workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
working-directory: IBPSA | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test-formatting: | |
# Skip if the commit message contains "ci skip" | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
runs-on: ubuntu-20.04 | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
- name: "Install pip" | |
run: pip3 install --upgrade pip wheel | |
- name: "Install BuildingsPy" | |
run: pip3 install git+https://github.com/lbl-srg/BuildingsPy@50ac74d8e4fd067179bb38bc23140c2c9254c94c | |
- name: "Test html syntax" | |
run : ../bin/runUnitTests.py --validate-html-only | |
- name: "Test experiment setup" | |
run : ../bin/runUnitTests.py --validate-experiment-setup | |
- name: "Test if package.order are correct" | |
run : | | |
python -c 'import buildingspy.development.refactor as r; r.write_package_order(".", recursive=True)' | |
git diff --exit-code . | |
- name: "Verify files for invalid strings" | |
run: ${GITHUB_WORKSPACE}/bin/verifyFiles.py | |
- name: "Test heat pump documentation" | |
run : (cd Resources/src/fluid/heatpumps/calibration/doc; make regressiontest) | |
- name: Check for UTF-8 BOM | |
run : | | |
for ff in `grep -rlI --exclude="ffd.vcxproj" --exclude-dir="\.git" $'^\xEF\xBB\xBF' .`; do | |
echo "::error file=${ff}:: Found BOM in ${ff}." | |
done; | |
test -z "${ff}" | |
- name: Check for file permissions | |
run : | | |
set -o noglob | |
LIST="*.mo *.mos *.fmu *.json *.txt *.jar *.c *.h *.def *.cc *.vcxproj \ | |
*.so *.exe \ | |
*.java package-list element-list \ | |
*.csv *.dat *.TMY *.mat \ | |
*.cfd *.ffd *.mcr \ | |
*.rst *.svg *.png *.gif *.jpg *.tiff *.xcf *.ico *.psd *.pdf *.odp \ | |
*.tex *.md *.html *.css \ | |
*.bat *.linux *.darwin \ | |
*.js *.map *.eot *.ttf *.woff *.woff2 *.inv \ | |
*.idd *.idf *.epw \ | |
*.dll *.lib \ | |
*.zip | |
package.order Makefile makefile RootMakefile" | |
for tt in ${LIST}; do | |
for ff in `find . -type f -name ${tt}`; do | |
chmod u=rw,og=r $ff | |
done | |
done | |
LIST="dymola *.sh" | |
for tt in ${LIST}; do | |
for ff in `find . -type f -name ${tt}`; do | |
chmod u=rwx,og=rx $ff | |
done | |
done | |
git diff --exit-code | |
# The Windows compiler generates files with u=rw,og=rw permission | |
LIST="*.dll" | |
for tt in ${LIST}; do | |
for ff in `find . -type f -name ${tt}`; do | |
chmod u=rw,og=rw $ff | |
done | |
done |