Code Monkey home page Code Monkey logo

Comments (7)

jbusecke avatar jbusecke commented on May 28, 2024 1

Oh damn. I was wrong and @andersy005 was right. The xdist was not even activated. Squeezed a good 7 min of the runtime r๐Ÿš€. See #86

from xmip.

andersy005 avatar andersy005 commented on May 28, 2024 1

Hooray๐Ÿš€ Glad to hear that activating pytest-xdist shaves minutes off the CI runtime...

from xmip.

andersy005 avatar andersy005 commented on May 28, 2024

@jbusecke,

I'd try these settings to see if there is any improvements:

- uses: conda-incubator/setup-miniconda@v2
  with:
    channels: conda-forge
    mamba-version: '*'
    channel-priority: strict
    activate-environment: test_env_cmip6_preprocessing # Defined in ci/environment*.yml
    auto-update-conda: false
    python-version: ${{ matrix.python-version }}
    use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Set up conda environment
  shell: bash -l {0}
  run: |
    mamba env update -f ci/environment-py${{ matrix.python-version }}.yml
    python -m pip install -e . --no-deps --force-reinstall
    conda list

from xmip.

jbusecke avatar jbusecke commented on May 28, 2024

Ah thanks a lot for the tips @andersy005 . I specify the -n auto in pyproject.toml I think. But the mamba setup is very new to me, so that makes a lot of sense.

from xmip.

jbusecke avatar jbusecke commented on May 28, 2024

It seems like the env update ... call is already using mamba in my configuration here. That seems to be equivalent to the mamba env update -f ci/environment-py${{ matrix.python-version }}.yml you proposed?

from xmip.

jbusecke avatar jbusecke commented on May 28, 2024

Or is there something I am missing.

Unfortunately setting the channel priority did not decrease the build time significantly either. I am however getting this weird message, that indicates that something is not set up quite right with the channels. I am not sure to which side (the ci.yaml configuration or the env file) the workflow resolves...

Wondering if using minimamba instead of miniconda would speed this up (since that one should not have to solve for a bunch of packages to install mamba?)

from xmip.

jbusecke avatar jbusecke commented on May 28, 2024

Ill close this for now.

from xmip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.