Skip to content

Commit

Permalink
sort conda and pip dependencies (#9)
Browse files Browse the repository at this point in the history
* sort conda and pip dependencies

* update mamba action
  • Loading branch information
CagtayFabry authored Jan 31, 2023
1 parent 0f7fd36 commit 63ccce9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
extras: 'test pip_only'
setup_requires: 'include'
pip: 'bidict'
- uses: mamba-org/provision-with-micromamba@v14
- uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: ./environment_test.yml
environment-name: demo
Expand Down
4 changes: 4 additions & 0 deletions create_conda_env_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class MetadataType:
pip = list(set(env["dependencies"]) & set(args.pip))
env["dependencies"] = list(set(env["dependencies"]) - set(pip))

# sort output
env["dependencies"] = sorted(env["dependencies"])
pip = sorted(pip)

output = "channels:"
output += "\n - ".join([""] + env["channels"])
output += "\ndependencies:"
Expand Down

0 comments on commit 63ccce9

Please sign in to comment.