Skip to content

Commit

Permalink
testing workflow edits
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Jan 10, 2024
1 parent 89996ed commit 93a65dc
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 89 deletions.
56 changes: 14 additions & 42 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,31 @@
name: Codecov

on: pull_request
on:
push:
branches: [main, master]

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ubuntu-latest]
python-version: ['3.9']
env:
OS: ${{ matrix.os }}
PYTHON: '3.9'
steps:
- name: checkout nsrdb
uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
path: nsrdb
- name: checkout mlclouds
uses: actions/checkout@v2
with:
repository: nrel/mlclouds
ssh-key: ${{ secrets.SSH_KEY }}
path: mlclouds
- name: checkout rest2
uses: actions/checkout@v2
with:
repository: nrel/rest2
ssh-key: ${{ secrets.SSH_KEY }}
path: rest2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install rest2 dependencies
working-directory: ./rest2
shell: bash -l {0}
run: |
conda install pip
pip install -e .
- name: Install nsrdb dependencies
working-directory: ./nsrdb
shell: bash -l {0}
python-version: 3.9
- name: install dependencies
run: |
eval "$( ssh-agent -s )"
ssh-add - <<< '${{ secrets.PRIVATE_KEY }}'
conda install hdf4
conda install -c conda-forge pyhdf
pip install -e .
- name: Install mlclouds dependencies
working-directory: ./mlclouds
shell: bash -l {0}
run: |
pip install -e .
- name: Install codecov dependencies
working-directory: ./nsrdb
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install pytest-cov
Expand Down
27 changes: 5 additions & 22 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,22 @@
name: Documentation

on: pull_request
on:
push:
branches: [main, master]

jobs:
make-pages:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9']
steps:
- uses: actions/checkout@v3
- name: select python version
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: checkout rest2
uses: actions/checkout@v2
with:
repository: nrel/rest2
ssh-key: ${{ secrets.SSH_KEY }}
path: rest2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install rest2 dependencies
working-directory: ./rest2
shell: bash -l {0}
run: |
conda install pip
pip install -e .
- name: install dependencies
run: |
eval "$( ssh-agent -s )"
ssh-add - <<< '${{ secrets.PRIVATE_KEY }}'
python -m pip install --upgrade pip
python -m pip install .
python -m pip install sphinx
Expand Down
40 changes: 17 additions & 23 deletions .github/workflows/pull_request_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,42 @@ jobs:

steps:
- name: checkout nsrdb
uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 1
path: nsrdb
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: checkout mlclouds
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: nrel/mlclouds
ssh-key: ${{ secrets.SSH_KEY }}
path: mlclouds
- name: checkout rest2
uses: actions/checkout@v2
with:
repository: nrel/rest2
ssh-key: ${{ secrets.SSH_KEY }}
path: rest2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install rest2 dependencies
working-directory: ./rest2
- name: Install mlclouds dependencies
working-directory: ./mlclouds
shell: bash -l {0}
run: |
conda install pip
eval "$( ssh-agent -s )"
ssh-add - <<< '${{ secrets.PRIVATE_KEY }}'
pip install -e .
- name: Install nsrdb dependencies
working-directory: ./nsrdb
shell: bash -l {0}
run: |
eval "$( ssh-agent -s )"
ssh-add - <<< '${{ secrets.PRIVATE_KEY }}'
conda install hdf4
conda install -c conda-forge pyhdf
pip install -e .
- name: Install mlclouds dependencies
working-directory: ./mlclouds
shell: bash -l {0}
run: |
pip install -e .
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install pytest-cov
python -m pip install .
- name: Run nsrdb pytest
working-directory: ./nsrdb
shell: bash -l {0}
run: |
conda install pytest
pytest -v --disable-warnings
2 changes: 1 addition & 1 deletion nsrdb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
nsrdb version number
"""

__version__ = "4.0.0"
__version__ = "4.0.1"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ matplotlib
NREL-cloud_fs>=0.0.8
NREL-farms>=1.0.5
NREL-reV<0.8.0
NREL-rest2>=1.0.1
scikit-learn>=1.0
NREL-rest2 @ git+ssh://[email protected]/NREL/rest2.git

0 comments on commit 93a65dc

Please sign in to comment.