Skip to content

fix: preserve WINDOW_TYPE_DATA optical properties #73

fix: preserve WINDOW_TYPE_DATA optical properties

fix: preserve WINDOW_TYPE_DATA optical properties #73

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: test-coverage
jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
DESTEP_TEST_ACCDB: ${{ github.workspace }}/tests/testthat/fixture/CoA_Chongqin_2015.accdb
steps:
- uses: actions/checkout@v4
- name: Cache DeST ACCDB fixture
id: cache-dest-accdb
uses: actions/cache@v4
with:
path: tests/testthat/fixture/CoA_Chongqin_2015.accdb
key: ${{ runner.os }}-destep-CoA_Chongqin_2015-accdb-v1
- name: Download DeST ACCDB fixture
if: steps.cache-dest-accdb.outputs.cache-hit != 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
mkdir -p tests/testthat/fixture
gh release download fixtures-coa-chongqin-2015-v1 \
-p CoA_Chongqin_2015.accdb \
-D tests/testthat/fixture
shell: bash
- name: Install mdbtools
run: sudo apt install mdbtools
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
needs: coverage
- name: Cache EnergyPlus 23.1
uses: actions/cache@v4
with:
path: |
~/Applications/EnergyPlus-23-1-0
~/.local/EnergyPlus-23-1-0
~/AppData/Local/EnergyPlusV23-1-0
key: ${{ runner.os }}-energyplus-23.1-portable-v1
- name: Install EnergyPlus 23.1
run: |
if (!eplusr::is_avail_eplus(23.1)) {
eplusr::install_eplus(23.1, local = TRUE, portable = TRUE)
}
eplusr::use_eplus(23.1)
stopifnot(file.exists(eplusr::path_eplus(23.1, "Energy+.idd", strict = TRUE)))
shell: Rscript {0}
- name: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}
- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package