-
Notifications
You must be signed in to change notification settings - Fork 9
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 #2 from jeipollack/feature_manual_trigger_workflows
Added workflow for manual trigger
- Loading branch information
Showing
10 changed files
with
53 additions
and
15 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,31 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: CI_manual | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
test-full: | ||
runs-on: [ubuntu-latest] | ||
|
||
|
||
strategy: | ||
matrix: | ||
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current Python version | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
|
||
- name: Install dependencies | ||
run: python -m pip install ".[test]" | ||
|
||
- name: Test with pytest | ||
run: python -m pytest |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
:Authors: Jennifer Pollack <[email protected]> and Tobias Liaudat <[email protected]> | ||
""" | ||
|
||
import numpy as np | ||
import wf_psf.utils.utils as utils | ||
import tensorflow as tf | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
:Author: Tobias Liaudat <[email protected]> and Jennifer Pollack <[email protected]> | ||
""" | ||
|
||
import numpy as np | ||
import zernike as zk | ||
import tensorflow as tf | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
:Author: Jennifer Pollack <[email protected]> | ||
""" | ||
|
||
import argparse | ||
from wf_psf.utils.read_config import read_stream | ||
from wf_psf.utils.io import FileIOHandler | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
:Author: Jennifer Pollack <[email protected]> | ||
""" | ||
|
||
import pytest | ||
from wf_psf.utils.read_config import RecursiveNamespace | ||
from wf_psf.training import train | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
""" | ||
|
||
import pytest | ||
import os | ||
|
||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
:Authors: Jennifer Pollack <[email protected]> | ||
""" | ||
|
||
import numpy as np | ||
from wf_psf.utils.read_config import read_conf | ||
from wf_psf.data.training_preprocessing import TrainingDataHandler, TestDataHandler | ||
|
@@ -412,9 +413,9 @@ def call_plot_config_handler_run(self, model_metrics): | |
) | ||
|
||
# Update metrics_confs dict with latest result | ||
plots_config_handler.metrics_confs[ | ||
self._file_handler.workdir | ||
] = self.metrics_conf | ||
plots_config_handler.metrics_confs[self._file_handler.workdir] = ( | ||
self.metrics_conf | ||
) | ||
|
||
# Update metric results dict with latest result | ||
plots_config_handler.list_of_metrics_dict[self._file_handler.workdir] = [ | ||
|