Skip to content

Commit 4669fe4

Browse files
committed
ddvc
1 parent 0db881a commit 4669fe4

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/build_wheel.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Python version ${{ matrix.version }}
3030
uses: actions/setup-python@v4
3131
with:
32-
python-version: "3.x"
32+
python-version: "3.11"
3333
- name: Install OMP (MacOS Intel)
3434
if: matrix.platform == 'macos-13'
3535
run: |
@@ -70,3 +70,8 @@ jobs:
7070
with:
7171
name: wheels-${{ runner.os }}-${{ strategy.job-index }}
7272
path: ./wheelhouse/*.whl
73+
- name: Install and Test with pytest
74+
run: |
75+
export PATH="$pythonLocation:$PATH"
76+
python -m pip install ./wheelhouse/ratapi-0.0.0.dev7-cp311-cp311-macosx_11_0_arm64.whl
77+
python test.py

.github/workflows/run_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Run Unit Tests
22

33
on:
44
push:
5-
branches: [ test_arm_again ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ test_arm_again ]
7+
branches: [ main ]
88

99
concurrency:
1010
group: ${{ github.head_ref || github.run_id }}

test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import ratapi
2+
3+
4+
p1, r = ratapi.examples.normal_reflectivity.DSPC_standard_layers.DSPC_standard_layers()
5+
6+
c = ratapi.Controls()
7+
c.procedure = 'dream'
8+
c.display = 'final'
9+
10+
p2, r = ratapi.run(p1, c)

0 commit comments

Comments
 (0)