Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
postpop authored Nov 2, 2024
1 parent 16f6b43 commit dc23e98
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -41,20 +41,20 @@ 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
conda activate xb_test
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 }}

0 comments on commit dc23e98

Please sign in to comment.