Skip to content

feat: add option to provide a config file path, update default conf l… #35

feat: add option to provide a config file path, update default conf l…

feat: add option to provide a config file path, update default conf l… #35

Workflow file for this run

name: Python install and test
on:
push:
branches: [ "main", "development" ]
pull_request:
branches: [ "main", "development" ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.9", "3.10", "3.11"]
runs-on: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install .
- name: Set up config
env:
NSGR_USERNAME: ${{ secrets.NSGR_USERNAME }}
NSGR_PASSWORD: ${{ secrets.NSGR_PASSWORD }}
NSGR_APPID: ${{ secrets.NSGR_APPID }}
run: |
echo "APPNAME=PY_EXPANSE" > nsgrest.conf
echo "URL=https://nsgr.sdsc.edu:8443/cipresrest/v1" >> nsgrest.conf
more nsgrest.conf # print contents so far...
echo "USERNAME=${NSGR_USERNAME}" >> nsgrest.conf
echo "PASSWORD=${NSGR_PASSWORD}" >> nsgrest.conf
echo "APPID=${NSGR_APPID}" >> nsgrest.conf
- name: Version info
run: |
pip list
- name: Test listing
run: |
nsgr_job -c nsgrest.conf -l
- name: Test submission
run: |
cd example && nsgr_submit -c nsgrest.conf . validate && nsgr_submit -c nsgrest.conf . run && cd NGBW* && tar -xvf output.tar.gz && echo ; echo ; echo "Output file contents:" ; echo && cd example_dir && cat output.txt