Skip to content

fix mpol inconsistency between VMEC and SurfaceRZFourier #1

fix mpol inconsistency between VMEC and SurfaceRZFourier

fix mpol inconsistency between VMEC and SurfaceRZFourier #1

Workflow file for this run

name: Conda
on:
workflow_dispatch:
push:
branches:
- master
- mbk/conda_package
pull_request:
release:
types: [published]
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-12]
python-version: ["3.9"]
runs-on: ${{ matrix.platform }}
# The setup-miniconda action needs this to activate miniconda
defaults:
run:
shell: "bash -l {0}"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Fetch all history for setuptools_scm to work
run: git fetch --prune --unshallow
- name: Get conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: strict
- name: Prepare
run: conda install -y conda-build conda-verify setuptools_scm anaconda-client scikit-build-core
- name: Build and upload
if: github.event_name == 'release' && github.event.action == 'published'
run: |
conda config --set anaconda_upload yes
conda build --token ${{ secrets.ANACONDA_TOKEN }} conda.recipe
- name: Build and upload to test
if: github.event_name == 'push' && github.ref == 'refs/heads/mbk/conda_package'
run: |
conda config --set anaconda_upload yes
conda build --token ${{ secrets.MBK_ANACONDA_TOKEN }} conda.recipe
- name: Build
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
conda build --no-test conda.recipe
- name: Build on PR
if: github.event_name == 'pull_request'
run: |
conda build --no-test conda.recipe