-
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 #149 from e10harvey/full_res_example
Full res example
- Loading branch information
Showing
6 changed files
with
172 additions
and
14 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
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,43 @@ | ||
name: github-UBI8-WEEKLY | ||
|
||
# Runs every Sunday at midnight | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '00 00 * * 0' | ||
|
||
permissions: | ||
contents: none | ||
|
||
# Cancels any in progress 'workflow' associated with this PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ubi8-weekly: | ||
runs-on: [opencsp-latest-ubi8] | ||
permissions: | ||
packages: read | ||
contents: read | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: OpenCSP | ||
|
||
- name: pytest-cov (OpenCSP/example - scene_reconstruction) | ||
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 \ | ||
--dir-input=/box_data/scene_reconstruction/data_measurement/ \ | ||
--dir-output=/box_data/scene_reconstruction/data_calculation/ \ | ||
scene_reconstruction/example_scene_reconstruction.py |
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,19 @@ | ||
import pytest | ||
|
||
|
||
# | ||
# Ensure pytest adds root directory to the system path. | ||
# | ||
def pytest_addoption(parser): | ||
parser.addoption('--dir-input', action='store', default='', help='Base directory with data input') | ||
parser.addoption('--dir-output', action='store', default='', help='Base directory where output will be written') | ||
|
||
|
||
@pytest.fixture | ||
def dir_input_fixture(request): | ||
return request.config.getoption('--dir-input') | ||
|
||
|
||
@pytest.fixture | ||
def dir_output_fixture(request): | ||
return request.config.getoption('--dir-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
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