diff --git a/.github/workflows/main_macos.yml b/.github/workflows/main_macos.yml new file mode 100644 index 0000000..9575152 --- /dev/null +++ b/.github/workflows/main_macos.yml @@ -0,0 +1,39 @@ +name: integration_test_macos + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-macos: + runs-on: macos-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Setup Mambaforge (macOS arm64) + uses: conda-incubator/setup-miniconda@v2 + with: + miniforge-variant: Mambaforge + miniforge-version: latest + architecture: arm64 + python-version: 3.10 + activate-environment: false + auto-update-conda: true + + - name: Create Conda Environment + run: | + # Now `mamba` is on PATH + mamba create -n marine_environment python=3.10 -y + mamba env update -n marine_environment --file marine_environment2.yaml + + - name: Run Integration Tests + run: | + conda init bash + CONDA_BASE=$(conda info --base) ; source $CONDA_BASE/etc/profile.d/conda.sh + conda activate marine_environment + cd tests + bash integration_tests_run.sh $(which python)