replace conda: parameter with conda_packages:#391
Conversation
c0c196b to
e374ea0
Compare
tox-conda, install Conda packages directly with micromambaconda: parameter with conda_packages:
e374ea0 to
44ac21e
Compare
9c26605 to
a90895a
Compare
|
@pllim this should hopefully be a good way forward instead of using |
|
Ooo thanks! Is there a way to test with this branch over at https://github.com/spacetelescope/wfc3tools ? |
|
Yes! Just make a PR that changes this line: - uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@2835f0cacddf3f8de198db9afdb5354a5cebe0ef # v2.6.3
+ uses: zacharyburnett/github-actions-workflows/.github/workflows/tox.yml@install_conda_packages_directly
|
f811cdf to
33c1c36
Compare
|
actually @Cadair if we can squeeze another PR into the 3.0.0 release, this one seems to be working well |
|
wait no never mind, I still need to use |
b9211da to
76f3014
Compare
|
ok, fixed |
|
This let's you install binaries for use in tox but not libraries right? You couldn't import a package installed like this? |
| type: string | ||
| conda: | ||
| description: Whether to test with conda (deprecated) | ||
| conda_packages: |
There was a problem hiding this comment.
Given how this is separate from tox, I wonder if it would be best folded into libraries like the system package managers?
There was a problem hiding this comment.
Oh that's a good idea!
There was a problem hiding this comment.
actually on second thought, maybe we should keep them separate; the conda environment is distinct from the runner and platform, and you can install both
There was a problem hiding this comment.
I'm still not entirely sure what the limits of this functionality are so hard to judge. Can you use this to install C libraries and have them picked up inside tox?
|
I'm in no mad rush for 3.0 fwiw, so happy to get this in. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
f659f25 to
7747782
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #391 +/- ##
=======================================
Coverage 66.66% 66.66%
=======================================
Files 2 2
Lines 6 6
=======================================
Hits 4 4
Misses 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
alternative to #361
replace the
conda:parameter (which invoked the now-archivedtox-conda) withconda_packages:.If the user populates
conda_packagesthen the workflow sets up a Mamba environment thattoxruns within.To migrate from
tox-conda, copyconda_depsfromtox.initoconda_packagesin the test workflow, and then also remember to list any non-Python Conda packages inallowlist_externals:allowlist_externals = hstcalthis will require a major version bump