Skip to content

Commit

Permalink
Merge branch 'develop' into guideline36-section4
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSteen authored Feb 22, 2024
2 parents 1061c3e + 87e2cbd commit 3e48153
Show file tree
Hide file tree
Showing 106 changed files with 24,135 additions and 47,318 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: continuous deployment

on:
on:
pull_request:
branches:
- develop
Expand All @@ -19,11 +19,13 @@ jobs:
steps:
# setup, checkout pull_request.head.ref for repo-vis
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.11'
# # update repo visualization for docs
# - name: repo-visualizer
# uses: githubocto/[email protected]
Expand All @@ -32,8 +34,13 @@ jobs:
# excluded_paths: ".github"
# commit_message: "repo-visualizer [skip actions]"
# install project, which is required for autodoc of code
- name: install-poetry
uses: snok/install-poetry@v1
with:
version: 1.4.0
virtualenvs-create: false
- name: install buildingmotif
run: pip install .
run: poetry install --all-extras
# install jupyter-book, which for some reason isn't available with poetry install
- name: install jupyter book
run: pip install jupyter-book
Expand All @@ -47,7 +54,7 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
publish_dir: ./docs/_build/html

# deploy distribution if a new release and tag are created
deploy-dist:
Expand All @@ -57,9 +64,9 @@ jobs:
steps:
# setup
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
# install poetry and build dist
- name: install-poetry
uses: snok/install-poetry@v1
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: install-poetry
uses: snok/install-poetry@v1
with:
Expand All @@ -30,12 +32,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install-poetry
Expand All @@ -54,6 +56,13 @@ jobs:
run: poetry run pytest tests/unit --cov=./ --cov-report=xml
- name: integration tests
run: poetry run pytest tests/integration
- name: bacnet tests
run: |
cd tests/integration/fixtures/bacnet
docker compose build device buildingmotif
docker compose run -d device
docker compose run buildingmotif poetry run pytest -m bacnet
docker compose down
- name: build tests
run: poetry build

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ docs/reference/apidoc/_autosummary


# project
configs.py
buildingmotif-app/node_modules/
**/BuildingMOTIF.log
*.db
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ repos:
rev: 5.12.0
hooks:
- id: isort
entry: poetry run isort --check
entry: poetry run isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
entry: poetry run black --check
entry: poetry run black
- repo: https://github.com/pycqa/flake8
rev: 5.0.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2022, Alliance for Sustainable Energy, LLC.
Copyright (c) 2023, Alliance for Sustainable Energy, LLC.
All rights reserved.

NOTICE: This Software was developed under funding from the U.S. Department of
Expand Down
210 changes: 115 additions & 95 deletions buildingmotif-app/angular.json
Original file line number Diff line number Diff line change
@@ -1,101 +1,121 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"buildingmotif-app": {
"projectType": "application",
"schematics": {"@schematics/angular:application": {"strict": true}},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/buildingmotif-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.css"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "buildingmotif-app:build:production"
},
"development": {
"browserTarget": "buildingmotif-app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {"browserTarget": "buildingmotif-app:build"}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.css"
],
"scripts": []
}
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"buildingmotif-app": {
"projectType": "application",
"schematics": {
"@schematics/angular:application": {
"strict": true
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/buildingmotif-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.css"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]}
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "buildingmotif-app:build:production"
},
"development": {
"browserTarget": "buildingmotif-app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "buildingmotif-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.css"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
},
"defaultProject": "buildingmotif-app",
"cli": {"defaultCollection": "@angular-eslint/schematics"}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit 3e48153

Please sign in to comment.