Coder Social home page Coder Social logo

uibcdf / action-build-and-upload-conda-packages Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 4.0 114 KB

GitHub Action: new conda packages are built and uploaded to Anaconda when a new released or pre-released version is declared.

License: MIT License

actions github-actions

action-build-and-upload-conda-packages's People

Contributors

aidanheerdegen avatar dprada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

action-build-and-upload-conda-packages's Issues

Option to not upload for CI testing

There is no option to just do the build and not upload. This would be useful for a CI pipeline, to check the correctness of the conda configuration before trying to deploy.

In this way the configuration could be fixed at the PR stage, rather than failing at deployment, say after a pull request has been merged and a new tag pushed.

Action fails with " line 14: label:: command not found"

I was using this action with a workflow that rebuilds the conda package everytime I push the repository (as the repository I'm using just contains the build recipe for a 3rd party package I want to build). I rather stupidly set the label input at "auto", but your check on line 221 of the action.yaml fails. I think you've used back-ticks and not ' ' when echoing the error message about auto not being compatible with this trigger.

Testing v1.3.0

Please @aidanheerdegen, use the new version v1.3.0 with your changes (update your workflow).
We will do the same.

I am going to change also the version number in the main README.md file.

Let's keep this issue opened a few weeks as a reminder of the evaluation status of v1.3.0 (although there shouldn't be any problem).

How to configure it ?

Hello, I try to use your action script (thanks for it) but it did not work:

Here is my config https://github.com/mlco2/codecarbon/blob/master/.github/workflows/python-publish.yml#L61

      - name: Build and upload the conda packages
        uses: uibcdf/[email protected]
        with:
          meta_yaml_dir: .conda
          python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
          platform_linux-64: true
          platform_osx-64: true
          platform_win-64: true
          user: codecarbon
          label: auto
          token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret

And the error:
https://github.com/mlco2/codecarbon/actions/runs/9220140010/job/25366550770#step:4:159

Building conda package for host platform
  conda build . --no-anaconda-upload --output-folder /tmp/compilation-xyCuDAjuQL --python 3.11
  usage: conda [-h] [-v] [--no-plugins] [-V] COMMAND ...
  conda: error: argument COMMAND: invalid choice: 'build' (choose from 'activate', 'deactivate', 'clean', 'compare', 'config', 'create', 'env', 'export', 'info', 'init', 'install', 'list', 'notices', 'package', 'remove', 'uninstall', 'rename', 'run', 'search', 'update', 'upgrade', 'content-trust', 'doctor', 'repoquery')

Any idea what's wrong ?

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.