Skip to content

Commit

Permalink
CI: update to download an install pyenergyplus
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoning Wang committed Aug 11, 2023
1 parent 7827a7d commit f82a5c6
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,17 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Download latest EnergyPlus
run: gh release download -R NREL/EnergyPlus -p '*Ubuntu20*.tar.gz'
run: wget https://github.com/taoning/pyenergyplus/releases/download/v23.1.0/pyenergyplus-23.1.0-py3-none-macosx_10_13_x86_64.whl

- name: Install EnergyPlus
run: |
ls
tar -xvf EnergyPlus*Ubuntu*.tar.gz
rm EnergyPlus*.tar.gz
mv EnergyPlus* EnergyPlus
ls
run: pip install pyenergyplus-23.1.0-py3-none-macosx_10_13_x86_64.whl

- name: Install frads
run: |
pip install .
- name: Run tests
run: |
export PATH=$PATH:${{ github.workspace }}/EnergyPlus
energyplus --version
pip install pytest
pytest test
Expand All @@ -67,27 +60,17 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Download latest EnergyPlus
run: gh release download -R NREL/EnergyPlus -p '*macOS11*.tar.gz'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: curl -O "https://github.com/taoning/pyenergyplus/releases/download/v23.1.0/pyenergyplus-23.1.0-py3-none-macosx_10_13_x86_64.whl"

- name: Install EnergyPlus
run: |
tar -xvf EnergyPlus*macOS*.tar.gz
ls
rm EnergyPlus*.tar.gz
mv EnergyPlus*macOS* EnergyPlus
ls
export PATH=$PATH:${{ github.workspace }}/EnergyPlus
run: pip install pyenergyplus-23.1.0-py3-none-macosx_10_13_x86_64.whl

- name: Install frads
run: |
pip install .
- name: Run tests
run: |
export PATH=$PATH:${{ github.workspace }}/EnergyPlus
energyplus --version
pip install pytest
pytest test
Expand All @@ -111,21 +94,16 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Download latest EnergyPlus
run: gh release download -R NREL/EnergyPlus -p "*Windows*.zip"
run: Invoke-WebRequest -Uri "https://github.com/taoning/pyenergyplus/releases/download/v23.1.0/pyenergyplus-23.1.0-py3-none-win_amd64.whl"

- name: Install EnergyPlus
run: |
unzip EnergyPlus*Windows*.zip
del /f EnergyPlus*.zip
move "EnergyPlus*" EnergyPlus
ls
run: pip install pyenergyplus-23.1.0-py3-none-win_amd64.whl

- name: Install frads
run: |
pip install .
- name: Run tests
run: |
set PATH=%PATH%;${{ github.workspace }}\EnergyPlus
pip install pytest
pytest

0 comments on commit f82a5c6

Please sign in to comment.