generated from arras-energy/gridlabd-old
-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (33 loc) · 1.13 KB
/
develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: develop
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup system
run: sudo ./setup.sh --local
- name: Build gridlabd
run: sudo ./build.sh --system --parallel
- name: Install openfido
run: |
test -x /usr/local/bin/python3 || sudo ln -sf $(which python3) /usr/local/bin/python3
sudo /usr/local/bin/python3 -m venv /usr/local/opt/openfido
source /usr/local/opt/openfido/bin/activate
sudo /usr/local/bin/python3 -m pip install requests pandas docker
export OPENFIDO_PIP_OPTIONS=--user
curl -sL https://raw.githubusercontent.com/openfido/cli/main/install.sh | sudo sh
- name: Validate system
run: sudo gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( sudo utilities/save_validation_errors ; false )
- name: Upload artifacts on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: validate-result
path: |
validate.txt
validate.tar.gz