Skip to content

Update main.yml

Update main.yml #14

Workflow file for this run

name: Simulation
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
runs-on: ubuntu-latest
container: lfenergy/arras:develop
steps:
- uses: actions/checkout@v3
- name: Get NSRDB credentials
env:
NSRDB_CREDENTIALS: ${{ secrets.NSRDB_CREDENTIALS }}
run: |
mkdir -p $HOME/.nsrdb
echo $NSRDB_CREDENTIALS > $HOME/.nsrdb/credentials.json
cat $HOME/.nsrdb/credentials.json
- name: Cache weather file
id: weather
uses: actions/cache@v3
with:
path: weather@9q8vq2.csv
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('weather@9q8vq2.csv') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run simulation
run: gridlabd main.glm
- name: Save results
uses: actions/upload-artifact@v3
with:
name: IEEE 123 voltage profile
path: IEEE-123-voltage-profile.png