|
| 1 | +name: Test Nifty Maria |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + |
| 7 | +jobs: |
| 8 | + test-nifty-maria: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + |
| 11 | + steps: |
| 12 | + - name: Checkout maria |
| 13 | + uses: actions/checkout@v4 |
| 14 | + |
| 15 | + - name: Checkout nifty_maria (inside CMB_denoising) |
| 16 | + uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + repository: jwuerzinger/CMB_denoising |
| 19 | + path: CMB_denoising |
| 20 | + |
| 21 | + - name: Set up Python |
| 22 | + uses: actions/setup-python@v5 |
| 23 | + with: |
| 24 | + python-version: "3.11" |
| 25 | + |
| 26 | + - name: Install pixi |
| 27 | + run: | |
| 28 | + cd CMB_denoising |
| 29 | + curl -fsSL https://pixi.sh/install.sh | bash |
| 30 | + echo "$HOME/.pixi/bin" >> $GITHUB_PATH |
| 31 | +
|
| 32 | + - name: Set up pixi test cpu no maria environment |
| 33 | + run: | |
| 34 | + cd CMB_denoising |
| 35 | + pixi install -e test |
| 36 | + pixi run -e test pip install torch --index-url https://download.pytorch.org/whl/cpu |
| 37 | +
|
| 38 | + - name: Install maria in pixi environment |
| 39 | + run: | |
| 40 | + cd CMB_denoising |
| 41 | + pixi run -e test pip install -e ../ |
| 42 | +
|
| 43 | + - name: Run tests with pixi |
| 44 | + run: | |
| 45 | + cd CMB_denoising/nifty_maria |
| 46 | + pixi run -e test pytest -q |
| 47 | +
|
| 48 | + #- name: Run atmos mustang test |
| 49 | + # run: | |
| 50 | + # cd CMB_denoising/nifty_maria/steering |
| 51 | + # pixi run -e test python test_steering.py --config test --fit_atmos True --fit_map False |
| 52 | + |
| 53 | + - name: Run map mustang test |
| 54 | + run: | |
| 55 | + cd CMB_denoising/nifty_maria/steering |
| 56 | + pixi run -e test python test_steering.py --config test --fit_atmos False --fit_map True |
| 57 | + |
| 58 | + - name: Run both mustang atmos and map test |
| 59 | + run: | |
| 60 | + cd CMB_denoising/nifty_maria/steering |
| 61 | + pixi run -e test python test_steering.py --config test --fit_atmos True --fit_map True |
| 62 | + |
| 63 | + #- name: Run atmos atlast test |
| 64 | + # run: | |
| 65 | + # cd CMB_denoising/nifty_maria/steering |
| 66 | + # pixi run -e test python test_steering.py --config test_atlast --fit_atmos True --fit_map False |
| 67 | + |
| 68 | + #- name: Run map atlast test |
| 69 | + # run: | |
| 70 | + # cd CMB_denoising/nifty_maria/steering |
| 71 | + # pixi run -e test python test_steering.py --config test_atlast --fit_atmos False --fit_map True |
| 72 | + |
| 73 | + #- name: Run both atlast atmos and map test |
| 74 | + # run: | |
| 75 | + # cd CMB_denoising/nifty_maria/steering |
| 76 | + # pixi run -e test python test_steering.py --config test_atlast --fit_atmos True --fit_map True |
0 commit comments