Skip to content

Commit

Permalink
update tests for refl1d to use pip
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Nov 25, 2024
1 parent ef94d91 commit abe70f2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/validate_refl1d.yml
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

0 comments on commit abe70f2

Please sign in to comment.