Update main.yml #14
Workflow file for this run
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
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 | |