diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index bbe8296..bd7ed66 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -20,12 +20,12 @@ jobs: fail-fast: False matrix: os: [windows-latest] - # python-version: ['3.12'] - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.12'] + # python-version: ['3.10', '3.11', '3.12'] # os: [ubuntu-latest, windows-latest, macOS-14] - include: - - python-version: 3.9 - os: windows-latest + # include: + # - python-version: 3.9 + # os: windows-latest defaults: # https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell run: shell: bash -l {0} @@ -41,13 +41,11 @@ jobs: activate-environment: anaconda-client-env environment-file: build_env.yml condarc-file: condarc.yml - - name: Build and upload to anaconda + - name: Build run: | mkdir ./build conda build conda/xarray-behave --no-anaconda-upload --python ${{ matrix.python-version }} --output-folder ./build - env: - ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} - - name: Test package + - name: Test run: | conda deactivate conda create -n xb_test xarray-behave=0.35.7 -c ./build -c local -c conda-forge -c ncb -y @@ -55,6 +53,8 @@ jobs: python -c "import xarray_behave; print(xarray_behave.__version__)" python -c "import xarray_behave.gui.app" # xb --help - - - + - name: Upload + run: | + conda build conda/xarray-behave --no-test --python ${{ matrix.python-version }} --output-folder ./build --skip-existing --user ncb --token ${{ secrets.ANACONDA_TOKEN }} + env: + ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}