-
Notifications
You must be signed in to change notification settings - Fork 14
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 #349 from NREL/kill-docker-singularity
Remove Docker dependency
- Loading branch information
Showing
20 changed files
with
316 additions
and
237 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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10'] | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
name: Tests - Python ${{ matrix.python-version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -32,6 +32,12 @@ jobs: | |
mkdir weather | ||
cd weather | ||
wget --quiet https://data.nrel.gov/system/files/156/BuildStock_TMY3_FIPS.zip | ||
- name: Download and Install OpenStudio | ||
run: | | ||
wget -q https://github.com/NREL/OpenStudio/releases/download/v3.5.1/OpenStudio-3.5.1+22e1db7be5-Ubuntu-20.04.deb | ||
sudo apt install -y ./OpenStudio-3.5.1+22e1db7be5-Ubuntu-20.04.deb | ||
openstudio openstudio_version | ||
which openstudio | ||
- name: Install buildstockbatch | ||
run: | | ||
cd buildstockbatch | ||
|
@@ -42,41 +48,41 @@ jobs: | |
cd buildstockbatch | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 buildstockbatch --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 buildstockbatch --count --max-line-length=127 --statistics | ||
# exit-zero treats all errors as warnings. | ||
flake8 buildstockbatch --count --statistics --exit-zero | ||
- name: Run PyTest and Coverage | ||
run: | | ||
cd buildstockbatch | ||
pytest --junitxml=coverage/junit.xml --cov=buildstockbatch --cov-report=xml:coverage/coverage.xml --cov-report=html:coverage/htmlreport | ||
- name: Test Report | ||
uses: mikepenz/[email protected] | ||
if: ${{ matrix.python-version == '3.10' }} | ||
if: ${{ matrix.python-version == '3.11' }} | ||
with: | ||
report_paths: buildstockbatch/coverage/junit.xml | ||
check_name: Testing Report | ||
fail_on_failure: true | ||
- name: Save Coverage Report | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ matrix.python-version == '3.10' }} | ||
if: ${{ matrix.python-version == '3.11' }} | ||
with: | ||
name: coverage-report-html | ||
path: buildstockbatch/coverage/htmlreport/ | ||
- name: Report coverage to PR | ||
uses: 5monkeys/cobertura-action@v13 | ||
if: ${{ matrix.python-version == '3.10' }} | ||
if: ${{ matrix.python-version == '3.11' }} | ||
with: | ||
path: buildstockbatch/coverage/coverage.xml | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
minimum_coverage: 33 | ||
fail_below_threshold: true | ||
- name: Build documentation | ||
if: ${{ matrix.python-version == '3.10' }} | ||
if: ${{ matrix.python-version == '3.11' }} | ||
run: | | ||
cd buildstockbatch/docs | ||
make html SPHINXOPTS="-W --keep-going -n" | ||
- name: Save Docs | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ matrix.python-version == '3.10' }} | ||
if: ${{ matrix.python-version == '3.11' }} | ||
with: | ||
name: documentation | ||
path: buildstockbatch/docs/_build/html/ |
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ buildstockbatch_crash_details.log | |
coverage/ | ||
.coverage | ||
build/ | ||
.env |
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
Oops, something went wrong.