-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP API and bindings unit testing; cleaning up; docs, csv support #204,
- Loading branch information
Showing
53 changed files
with
9,286 additions
and
4,616 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 |
---|---|---|
@@ -1,14 +1,94 @@ | ||
name: Build and Regression Test | ||
name: Build and Unit Test | ||
|
||
on: | ||
push: | ||
branches: [ master] | ||
# pull_request: | ||
# branches: [ master, develop, release ] | ||
|
||
env: | ||
OMP_NUM_THREADS: 1 | ||
BUILD_HOME: build | ||
TEST_HOME: nrtests | ||
PACKAGE_NAME: vcpkg-export-20220826-200052.1.0.0 | ||
PKG_NAME: vcpkg-export-20220826-200052 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
unit_test: | ||
name: Build and unit test | ||
runs-on: windows-2019 | ||
environment: testing | ||
defaults: | ||
run: | ||
shell: cmd | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install boost-test | ||
env: | ||
REMOTE_STORE: "https://nuget.pkg.github.com/michaeltryby/index.json" | ||
USERNAME: michaeltryby | ||
run: | | ||
nuget sources add -Name github -Source ${{ env.REMOTE_STORE }} -Username ${{ env.USERNAME }} -Password ${{ secrets.ACCESS_TOKEN }} | ||
nuget install ${{env.PKG_NAME}} -Source github | ||
- name: Build | ||
env: | ||
TOOL_CHAIN_PATH: \scripts\buildsystems\vcpkg.cmake | ||
run: | | ||
cmake -B .\build -DBUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=.\${{env.PACKAGE_NAME}}${{env.TOOL_CHAIN_PATH}} . | ||
cmake --build .\build --config DEBUG | ||
- name: Unit Test | ||
run: ctest --test-dir .\build -C Debug --output-on-failure | ||
|
||
|
||
reg_test: | ||
name: Build and reg test | ||
runs-on: windows-2019 | ||
defaults: | ||
run: | ||
shell: cmd | ||
working-directory: ci-tools/windows | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout swmm repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout ci-tools repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: michaeltryby/ci-tools | ||
ref: master | ||
path: ci-tools | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements-swmm.txt | ||
- name: Build | ||
run: make.cmd /g "Visual Studio 16 2019" | ||
|
||
- name: Before reg test | ||
env: | ||
NRTESTS_URL: https://github.com/USEPA/swmm-nrtestsuite | ||
BENCHMARK_TAG: v2.5.0-dev | ||
run: before-nrtest.cmd ${{ env.BENCHMARK_TAG }} | ||
|
||
- name: Run reg test | ||
run: run-nrtests.cmd %GITHUB_RUN_ID%_%GITHUB_RUN_NUMBER% | ||
|
||
- name: Upload artifacts | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-test-artifacts | ||
path: upload/*.* |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
include LICENSE | ||
include README.md | ||
recursive-include *.py | ||
recursive-include *.txt | ||
recursive-include *.md | ||
recursive-include *.pyi | ||
recursive-include *.inp | ||
recursive-include *.pickle | ||
recursive-include . *.py | ||
recursive-include . *.txt | ||
recursive-include . *.md | ||
recursive-include . *.pyi | ||
recursive-include . *.inp | ||
recursive-include . *.pickle | ||
recursive-include docs *.rst | ||
recursive-include tests *.csv | ||
global-exclude *.pyc |
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.