Skip to content

Commit

Permalink
Merge branch 'main' into package_health
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronspring authored Oct 29, 2023
2 parents fdd5dcc + 97ee881 commit 497bc71
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/upstream-dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
outputs:
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: xarray-contrib/ci-trigger@v1.1
Expand Down Expand Up @@ -51,22 +51,23 @@ jobs:
outputs:
artifacts_availability: ${{ steps.status.outputs.ARTIFACTS_AVAILABLE }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- uses: conda-incubator/setup-miniconda@v2
fetch-depth: 0 # Fetch all history for all branches and tags.
- name: setup conda (micromamba)
uses: mamba-org/setup-micromamba@v1
with:
channels: conda-forge
channel-priority: strict
mamba-version: "*"
activate-environment: xskillscore-dev
auto-update-conda: false
python-version: ${{ matrix.python-version }}
environment-file: ci/dev.yml
environment-name: xskillscore-dev
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
pytest-reportlog
conda
- name: Set up conda environment
run: |
mamba env update -f ci/dev.yml
bash ci/install-upstream-wheels.sh
- name: Install xskillscore
- name: Install xskillscore no deps
run: |
python -m pip install --no-deps -e .
- name: Version info
Expand Down
2 changes: 1 addition & 1 deletion ci/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: xskillscore-dev
channels:
- conda-forge
dependencies:
- python >=3.9
- python >= 3.9,<3.12
# Documentation
- nbsphinx
- nbstripout
Expand Down
14 changes: 5 additions & 9 deletions ci/install-upstream-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,22 @@ conda uninstall -y --force \
dask \
cftime \
bottleneck \
scipy \
xarray \
xhistogram \
xskillscore


# to limit the runtime of Upstream CI
python -m pip install pytest-timeout
python -m pip install \
-i https://pypi.anaconda.org/scipy-wheels-nightly/simple \
-i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
--no-deps \
--pre \
--upgrade \
numpy \
scipy \
matplotlib \
pandas
python -m pip install \
-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
--no-deps \
--pre \
--upgrade \
matplotlib
python -m pip install pytest-timeout
python -m pip install \
--no-deps \
--upgrade \
Expand Down

0 comments on commit 497bc71

Please sign in to comment.