Skip to content

Commit 70cd128

Browse files
fix(ci): make Test template initialization self-contained
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
1 parent b090a69 commit 70cd128

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,9 @@ jobs:
196196
uses: mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48 # ratchet:mxschmitt/action-tmate@v3
197197
if: ${{ needs.set-variables.outputs.debug == 'true' }}
198198

199-
# - name: Install omnix
200-
# run: nix --accept-flake-config profile install "github:juspay/omnix"
201-
202-
- name: Install uv
203-
uses: astral-sh/setup-uv@f94ec6bedd8674c4426838e6b50417d36b6ab231 # ratchet:astral-sh/setup-uv@v5
204-
with:
205-
python-version: "3.12"
206-
enable-cache: true
207-
cache-dependency-glob: "uv.lock"
208-
version: "0.6.4"
199+
- name: Install omnix
200+
# If we don't install omnix here, it will just clutter the log of the next step
201+
run: nix --accept-flake-config profile install "github:juspay/omnix"
209202

210203
- name: Test template initialization
211204
# This script executes the tl;dr one-liner from the README
@@ -236,9 +229,9 @@ jobs:
236229
237230
# TODO: remove on resolution of https://github.com/juspay/omnix/issues/425
238231
nix run .#fix-template-names -- python-nix-template
239-
# This needs to use the system uv (astral-sh/setup-uv) before entering
240-
# the devshell
241-
uv lock
232+
# This needs to use a global uv (astral-sh/setup-uv) before entering
233+
# the devshell even though uv is included in the devshell
234+
nix run nixpkgs#uv -- lock
242235
git add .
243236
244237
nix develop -c pytest

0 commit comments

Comments
 (0)