Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2028 +/- ##
=======================================
Coverage 95.61% 95.61%
=======================================
Files 30 30
Lines 8881 8881
Branches 1311 1311
=======================================
Hits 8492 8492
Misses 240 240
Partials 149 149 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
lorenzncode
reviewed
Apr 25, 2026
Member
lorenzncode
left a comment
There was a problem hiding this comment.
I tested the apptainer image. The ghcr image is working for me in a quick test.
apptainer pull /tmp/cq-ghcr.sif oras://ghcr.io/cadquery/cadquery-apptainer:aec0cd7759be33c2c923548b895ebe72ba57df58
apptainer exec /tmp/cq-ghcr.sif \
micromamba run -n base python -c '
from cadquery.func import *
box(1, 1, 4).export("out.step")
'
- Consider adding
/opt/conda/binto PATH to call python directly?
%environment
export PATH=/opt/conda/bin:$PATH
apptainer exec /tmp/cq2.sif python ...
- Do you want to support cadquery.vis show or only headless?
Locally this worked for me:
%post
set -eux
apt-get update
apt-get install -y \
libgl1 \
libglx-mesa0 \
libegl1 \
libgl1-mesa-dri \
mesa-utils \
xauth
rm -rf /var/lib/apt/lists/*
head -n -1 /opt/environment.yml > /opt/environment_.yml
...
apptainer exec /tmp/cq2.sif python -c '
from cadquery.func import *
from cadquery.vis import show
show(box(1,1,4))
'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.