-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef94d91
commit abe70f2
Showing
1 changed file
with
35 additions
and
0 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,35 @@ | ||
name: ORSO Val. Refl1D | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
validate_ref1d: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install Python packages | ||
run: | | ||
python -m pip install numpy scipy cython pytest | ||
# install refl1d from source (because the last release requires | ||
# wxpython which requires a lot of time to build, the git repo doesn't | ||
# at time of writing) | ||
python -m pip install refl1d --pre | ||
- name: Validate | ||
run: | | ||
# run validation via pytest (for Python packages) | ||
pytest validation/scripts/test_refl1d.py |