Upgrade pyPDAF to be compatible with PDAF V2.2.1 #5
Workflow file for this run
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
name: conda_build_mac_m1 | |
on: [workflow_dispatch, pull_request] | |
jobs: | |
upload_conda_mac_m1: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
ref: upgrade2.2.1 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-activate-base: true | |
auto-update-conda: true | |
activate-environment: "" | |
- name: build pyPDAF | |
shell: bash -el {0} | |
run: | | |
cp PDAFBuild/setup_conda_m1_mac.cfg setup.cfg | |
conda install python anaconda-client conda-build conda-verify | |
anaconda login --username yumengch --password ${{ secrets.ANACONDA }} | |
conda config --set anaconda_upload no | |
conda-build -c conda-forge conda.recipe/ | |
- name: install pyPDAF | |
shell: bash -el {0} | |
run: | | |
conda install -y -c conda-forge --use-local pypdaf | |
mv example/config_mac.py example/config.py | |
mv example/config_obsA_mac.py example/config_obsA.py | |
mpiexec -n 4 python -u example/main.py | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 |