uibcdf / action-build-and-upload-conda-packages Goto Github PK
View Code? Open in Web Editor NEWGitHub Action: new conda packages are built and uploaded to Anaconda when a new released or pre-released version is declared.
License: MIT License
GitHub Action: new conda packages are built and uploaded to Anaconda when a new released or pre-released version is declared.
License: MIT License
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.
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.
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).
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.