diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 000000000..b6541dab6 --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,33 @@ +name: develop + +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] + +jobs: + build: + + runs-on: ubuntu-latest + container: slacgismo/gridlabd_dockerhub_base:latest + + steps: + - uses: actions/checkout@v2 + - name: Run autoconf + run: autoreconf -isf + - name: Configure build + run: ./configure + - name: Build gridlabd + run: make -j10 system + - name: Validate build + run: | + gridlabd -D keep_progress=TRUE -T 0 --validate + utilities/save_validation_errors || true + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: validate-result + path: | + validate.txt + validate.tar.gz diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 000000000..0174ce96a --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,33 @@ +name: master + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + container: slacgismo/gridlabd_dockerhub_base:latest + + steps: + - uses: actions/checkout@v2 + - name: Run autoconf + run: autoreconf -isf + - name: Configure build + run: ./configure + - name: Build gridlabd + run: make -j10 system + - name: Validate build + run: | + gridlabd -D keep_progress=TRUE -T 0 --validate + utilities/save_validation_errors || true + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: validate-result + path: | + validate.txt + validate.tar.gz diff --git a/README.md b/README.md index f47a418ad..1de5bb76a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![master](https://github.com/dchassin/gridlabd/workflows/master/badge.svg) ![develop](https://github.com/dchassin/gridlabd/workflows/develop/badge.svg) + The main documentation page for this project is located at http://docs.gridlabd.us/. ## Important Note diff --git a/gldcore/autotest/test_require_pwlf.glm b/gldcore/autotest/test_require_pwlf.glm deleted file mode 100644 index 05de5f84f..000000000 --- a/gldcore/autotest/test_require_pwlf.glm +++ /dev/null @@ -1,2 +0,0 @@ -#python -m pip uninstall pwlf -y 1>/dev/null -#require pwlf diff --git a/gldcore/autotest/test_require_pytz.glm b/gldcore/autotest/test_require_pytz.glm new file mode 100644 index 000000000..fa2858c1f --- /dev/null +++ b/gldcore/autotest/test_require_pytz.glm @@ -0,0 +1,2 @@ +#python -m pip uninstall pytz -y 1>/dev/null +#require pytz