-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from e10harvey/develop
Resolve conflicts, bring main up to tip of develop
- Loading branch information
Showing
477 changed files
with
12,974 additions
and
20,286 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[run] | ||
omit = test_*.py | ||
__init__.py | ||
branch = True | ||
dynamic_context = test_function | ||
|
||
[report] | ||
skip_covered = False | ||
fail_under = 99 | ||
show_missing = True | ||
|
||
[html] | ||
directory = tests/htmlcov | ||
title = GenConfig Coverage Report | ||
show_contexts = True | ||
|
||
[xml] | ||
output = tests/coverage.xml | ||
|
||
[json] | ||
output = tests/coverage.json | ||
pretty_print = True | ||
show_contexts = True |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,7 @@ name: github-DOCKER | |
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
- main | ||
|
||
permissions: | ||
contents: none | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: github-DOCS | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.rst' | ||
- '**/*.md' | ||
- 'doc/**' | ||
types: [ opened, reopened, synchronize ] | ||
|
||
permissions: | ||
contents: none | ||
|
||
# Cancels any in progress 'workflow' associated with this PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docs-check: | ||
name: docs-check | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenCSP | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Sphinx docs check | ||
run: | | ||
cd OpenCSP | ||
pip install -r requirements.txt | ||
cd doc | ||
pip install -r requirements.txt | ||
./make_docs.sh | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: github-FORMAT | ||
#test | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.rst' | ||
- '**/*.md' | ||
- 'doc/**' | ||
types: [ opened, reopened, synchronize ] | ||
|
||
permissions: | ||
contents: none | ||
|
||
# Cancels any in progress 'workflow' associated with this PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
format-check: | ||
name: format-check | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenCSP | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Black formatting check | ||
run: | | ||
pip install black | ||
cd OpenCSP | ||
black . -S -C --check --diff --config ./pyproject.toml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: github-UBI8-NIGHTLY | ||
|
||
# Runs every night at midnight | ||
on: | ||
schedule: | ||
- cron: '00 00 * * *' | ||
|
||
permissions: | ||
contents: none | ||
|
||
# Cancels any in progress 'workflow' associated with this PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ubi8-nightly: | ||
name: ubi8-nightly | ||
runs-on: [ubuntu-latest] | ||
permissions: | ||
packages: read | ||
contents: read | ||
container: | ||
image: ghcr.io/sandialabs/opencsp:latest-ubi8 | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenCSP | ||
|
||
- name: pytest-cov | ||
working-directory: OpenCSP/example | ||
run: | | ||
python3 -m pip install -r ../requirements.txt | ||
export PYTHONPATH=$PWD/../ | ||
pytest --color=yes -rs -vv --cov=. --cov-report term --cov-config=.coveragerc | ||
- name: Pip Upgrade pytest-cov | ||
working-directory: OpenCSP/example | ||
run: | | ||
python3 -m pip install -U -r ../requirements.txt | ||
export PYTHONPATH=$PWD/../ | ||
pytest --color=yes -rs -vv --cov=. --cov-report term --cov-config=.coveragerc |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: github-WINDOWS2022 | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.rst' | ||
- '**/*.md' | ||
- 'doc/**' | ||
types: [ opened, reopened, synchronize ] | ||
|
||
permissions: | ||
contents: none | ||
|
||
# Cancels any in progress 'workflow' associated with this PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
windows2022-ci: | ||
name: windows2022-ci | ||
runs-on: [windows-2022] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenCSP | ||
|
||
- name: Setup headless display | ||
uses: pyvista/setup-headless-display-action@v2 | ||
with: | ||
qt: true | ||
pyvista: false | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install Deps | ||
run: | | ||
python3 -m pip install -r ./OpenCSP/requirements.txt | ||
choco install ffmpeg | ||
- name: pytest-cov | ||
working-directory: OpenCSP/opencsp | ||
run: | | ||
set PYTHONPATH="$PWD\.." | ||
echo "$PYTHONPATH" | ||
$env:PYTHONPATH="$PWD\.." | ||
pytest --color=yes -rs -vv --cov=. --cov-report term --cov-config=.coveragerc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
# Python cache files. | ||
*.pyc | ||
.pytest_cache/ | ||
.spyproject | ||
**/__pycache__/ | ||
|
||
# Virtual environment | ||
env/ | ||
|
||
# Ben's Sublime files. | ||
sftp-config.json | ||
|
||
# Test code scratch output directories. | ||
actual_output/ | ||
|
||
# Jupyter checkpoints | ||
.ipynb_checkpoints/ | ||
|
||
# pytest-cov data | ||
.coverage | ||
|
||
# test data output | ||
**/test/data/output/ |
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
Oops, something went wrong.