Skip to content

Commit

Permalink
Merge pull request #72 from kthyng/main
Browse files Browse the repository at this point in the history
added win specific env for ci
  • Loading branch information
kthyng authored Oct 30, 2024
2 parents 7449374 + 07d60f9 commit 73afd25
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Checkout source
uses: actions/checkout@v4
# - name: Cache conda
# uses: actions/cache@v3
# env:
Expand All @@ -21,7 +22,8 @@ jobs:
# path: ~/conda_pkgs_dir
# key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment-py${{ matrix.python-version }}.yml') }}

- name: Setup Micromamba Python ${{ matrix.python-version }}
- name: Setup Linux/macOS Micromamba Python ${{ matrix.python-version }}
if: ${{ runner.os != 'Windows' }}
uses: mamba-org/setup-micromamba@v1
with:
init-shell: bash
Expand All @@ -31,6 +33,27 @@ jobs:
cache-environment: true
post-cleanup: 'all'

- name: Setup Windows Micromamba Python ${{ matrix.python-version }}
if: ${{ runner.os == 'Windows' }}
uses: mamba-org/setup-micromamba@v1
with:
init-shell: bash
create-args: >-
python=${{ matrix.python-version }} --channel conda-forge
environment-file: ci/environment-py${{ matrix.python-version }}-win.yml
cache-environment: true
post-cleanup: 'all'

# - name: Setup Micromamba Python ${{ matrix.python-version }}
# uses: mamba-org/setup-micromamba@v1
# with:
# init-shell: bash
# create-args: >-
# python=${{ matrix.python-version }} --channel conda-forge
# environment-file: ci/environment-py${{ matrix.python-version }}.yml
# cache-environment: true
# post-cleanup: 'all'


# - name: Set up conda environment
# uses: conda-incubator/setup-miniconda@v2
Expand Down
39 changes: 39 additions & 0 deletions ci/environment-py3.10-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test_env_model_assessor
channels:
- conda-forge
dependencies:
- python=3.10
############## These will have to be adjusted to your specific project
# - cf_pandas
- cartopy
- cf_xarray
- cmocean
- datetimerange
# - esmf>=8.5.0
# - esmpy>=8.5.0 # https://github.com/esmf-org/esmf/issues/140
- extract_model
# - intake
# - intake-axds
# - intake-erddap
- matplotlib-base
- numpy
- pandas
- pyproj
- scipy
- xarray
- xcmocean
- alphashape
- cf_pandas
- intake-axds
- intake-erddap
- intake>=0.7.0
- nested-lookup
# - xesmf
- xroms # github actions won't find on conda-forge
##############
- pytest
- pip:
- codecov
- pytest-cov
- pytest-mpl
- coverage[toml]
39 changes: 39 additions & 0 deletions ci/environment-py3.11-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test_env_model_assessor
channels:
- conda-forge
dependencies:
- python=3.11
############## These will have to be adjusted to your specific project
# - cf_pandas
- cartopy
- cf_xarray
- cmocean
- datetimerange
# - esmf>=8.5.0
# - esmpy>=8.5.0 # https://github.com/esmf-org/esmf/issues/140
- extract_model
# - intake
# - intake-axds
# - intake-erddap
- matplotlib-base
- numpy
- pandas
- pyproj
- scipy
- xarray
- xcmocean
##############
- alphashape
- cf_pandas
- intake-axds
- intake-erddap
- intake>=0.7.0
- nested-lookup
# - xesmf
- xroms # github actions won't find on conda-forge
- pytest
- pip:
- codecov
- pytest-cov
- pytest-mpl
- coverage[toml]
39 changes: 39 additions & 0 deletions ci/environment-py3.9-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test_env_model_assessor
channels:
- conda-forge
dependencies:
- python=3.9
############## These will have to be adjusted to your specific project
# - cf_pandas
- cartopy
- cf_xarray
- cmocean
- datetimerange
# - esmf>=8.5.0
# - esmpy>=8.5.0 # https://github.com/esmf-org/esmf/issues/140
- extract_model
# - intake
# - intake-axds
# - intake-erddap
- matplotlib-base
- numpy
- pandas
- pyproj
- scipy
- xarray
- xcmocean
##############
- alphashape
- cf_pandas
- intake-axds
- intake-erddap
- intake
- nested-lookup
# - xesmf
- xroms # github actions won't find on conda-forge
- pytest
- pip:
- codecov
- pytest-cov
- pytest-mpl
- coverage[toml]
3 changes: 3 additions & 0 deletions docs/whats_new.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# What's New

## v1.3.2 (October 30, 2024)
* added Windows-specific CI build environments that exclude xESMF-related packages

## v1.3.1 (October 30, 2024)
* updated release workflow so it will work on PyPI

Expand Down

0 comments on commit 73afd25

Please sign in to comment.