{"id":19264307,"url":"https://github.com/s-weigand/setup-conda","last_synced_at":"2025-10-09T23:04:48.362Z","repository":{"id":36206213,"uuid":"222194130","full_name":"s-weigand/setup-conda","owner":"s-weigand","description":"This action adds the `conda` command from the on the worker preinstalled miniconda version to the known shell commands.","archived":false,"fork":false,"pushed_at":"2025-04-07T04:46:09.000Z","size":1631,"stargazers_count":63,"open_issues_count":10,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T23:46:38.389Z","etag":null,"topics":["ci","conda","github-actions","python","setup-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/s-weigand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-17T03:55:15.000Z","updated_at":"2025-03-09T00:31:24.000Z","dependencies_parsed_at":"2023-02-19T04:16:07.873Z","dependency_job_id":"87409072-7e08-4f0b-a620-28266956559d","html_url":"https://github.com/s-weigand/setup-conda","commit_stats":{"total_commits":295,"total_committers":7,"mean_commits":"42.142857142857146","dds":"0.28135593220338984","last_synced_commit":"d15429738c460f4ea3d2f609187fd7f177499f58"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-weigand%2Fsetup-conda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-weigand%2Fsetup-conda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-weigand%2Fsetup-conda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-weigand%2Fsetup-conda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-weigand","download_url":"https://codeload.github.com/s-weigand/setup-conda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536238,"owners_count":21446698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","conda","github-actions","python","setup-actions"],"created_at":"2024-11-09T19:40:45.330Z","updated_at":"2025-10-09T23:04:43.340Z","avatar_url":"https://github.com/s-weigand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-conda\n\n[![Tests](https://github.com/s-weigand/setup-conda/workflows/Tests/badge.svg)](https://github.com/s-weigand/setup-conda/actions)\n[![All Contributors](https://img.shields.io/github/all-contributors/s-weigand/setup-conda)](#contributors-)\n\nThis action adds the [`conda`](https://conda.io/projects/conda/en/latest/user-guide/tasks/index.html)\ncommand from the on the worker preinstalled miniconda version to the known shell commands.\n\n\u003e [!CAUTION]\n\u003e This action [is known to currently not work with macOS runner-images newer than `macOS-12` (i.e. `macOS-latest`)](https://github.com/s-weigand/setup-conda/issues/432).\n\n## Inputs\n\n| Name             | Requirement | Default     | Description                                                                                                                                                          |\n| ---------------- | ----------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `activate-conda` | _optional_  | `true`      | Whether to activate the conda base env.                                                                                                                              |\n| `update-conda`   | _optional_  | `false`     | If conda should be updated before running other commands.                                                                                                            |\n| `python-version` | _optional_  | `'default'` | Python version which should be installed with conda.                                                                                                                 |\n| `conda-channels` | _optional_  | `''`        | Additional channels like 'conda-forge', as coma separated list, which can be used to install packages. The last channel in the list, will have the highest priority. |\n\n# Usage\n\nSee [action.yml](action.yml)\n\n## Basic:\n\nThe basic usage makes the conda python version the default python (`$ conda activate base`).\n\n```yaml\nsteps:\n  - uses: actions/checkout@v3\n  - uses: s-weigand/setup-conda@v1\n  - run: conda --version\n  - run: which python\n```\n\nIf you don't want to change the python version which is used\n(e.g. you just need to install a none python package), you can use `activate-conda: false`.\n\n```yaml\nsteps:\n  - uses: actions/checkout@v3\n  - name: Set up Python 3.8\n    uses: actions/setup-python@v4\n    with:\n      python-version: 3.8\n  - uses: s-weigand/setup-conda@v1\n    with:\n      activate-conda: false\n  - run: conda --version\n  - run: which python\n```\n\n## Matrix Testing:\n\n```yaml\njobs:\n  build:\n    runs-on: ${{ matrix.os }}\n    strategy:\n      matrix:\n        os: [ubuntu-latest, windows-latest, macOS-latest]\n        python-version: [3.6, 3.7, 3.8]\n    name: Python ${{ matrix.python-version }} example\n    steps:\n      - uses: actions/checkout@v3\n      - name: Setup conda\n        uses: s-weigand/setup-conda@v1\n        with:\n          update-conda: true\n          python-version: ${{ matrix.python-version }}\n          conda-channels: anaconda, conda-forge\n      - run: conda --version\n      - run: which python\n```\n\n# Similar projects\n\n- [conda-incubator/setup-miniconda](https://github.com/conda-incubator/setup-miniconda)\n- [mamba-org/setup-micromamba](https://github.com/mamba-org/setup-micromamba)\n- [prefix-dev/setup-pixi](https://github.com/prefix-dev/setup-pixi)\n\n# Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/s-weigand\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/9513634?v=4?s=100\" width=\"100px;\" alt=\"Sebastian Weigand\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSebastian Weigand\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/commits?author=s-weigand\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-s-weigand\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#infra-s-weigand\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"#maintenance-s-weigand\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"https://github.com/s-weigand/setup-conda/commits?author=s-weigand\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/s-weigand/setup-conda/pulls?q=is%3Apr+reviewed-by%3As-weigand\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://santi.uy\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/3905501?v=4?s=100\" width=\"100px;\" alt=\"Santiago Castro\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSantiago Castro\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/commits?author=bryant1410\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/d-chambers\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/11671536?v=4?s=100\" width=\"100px;\" alt=\"Derrick\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDerrick\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/commits?author=d-chambers\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/basic-ph\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/35763852?v=4?s=100\" width=\"100px;\" alt=\"Pietro Fumiani\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePietro Fumiani\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Abasic-ph\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/dcdenu4\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/2659980?v=4?s=100\" width=\"100px;\" alt=\"Doug\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDoug\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Adcdenu4\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://ocefpaf.github.io/python4oceanographers\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/950575?v=4?s=100\" width=\"100px;\" alt=\"Filipe\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFilipe\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Aocefpaf\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://carlsimonadorf.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1441208?v=4?s=100\" width=\"100px;\" alt=\"Carl Simon Adorf\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCarl Simon Adorf\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Acsadorf\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/wvxvw\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3147276?v=4?s=100\" width=\"100px;\" alt=\"wvxvw\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ewvxvw\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Awvxvw\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://violafanfani.github.io/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/35488779?v=4?s=100\" width=\"100px;\" alt=\"violafanfani\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eviolafanfani\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Aviolafanfani\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://phdru.name/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/730158?v=4?s=100\" width=\"100px;\" alt=\"Oleg Broytman\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eOleg Broytman\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Aphdru\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/s-weigand/setup-conda/commits?author=phdru\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://loicpauleve.name\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/228657?v=4?s=100\" width=\"100px;\" alt=\"Loïc Paulevé\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLoïc Paulevé\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Apauleve\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://www.hydroffice.org\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2849257?v=4?s=100\" width=\"100px;\" alt=\"giumas\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003egiumas\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Agiumas\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/kujaku11\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/2100870?v=4?s=100\" width=\"100px;\" alt=\"JP\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJP\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/s-weigand/setup-conda/issues?q=author%3Akujaku11\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-weigand%2Fsetup-conda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-weigand%2Fsetup-conda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-weigand%2Fsetup-conda/lists"}