Skip to content

Commit 8692d49

Browse files
[ci] Move pip commands to run cmd for cross-arch tests
This adds more transparency to the command, and reduces the responsibility of the cross-arch image. Also, the `pip freeze` command is now run after installing nox's dependencies. Signed-off-by: Tiyash Basu <[email protected]>
1 parent 3a681e1 commit 8692d49

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/containers/nox-cross-arch/entrypoint.bash

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ set -e
44
echo "System details:" $(uname -a)
55
echo "Machine:" $(uname -m)
66

7-
pip install -e .[dev-noxfile]
8-
pip freeze
9-
107
exec "$@"

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
--net=host \
165165
--platform linux/${{ matrix.arch }} \
166166
localhost/nox-cross-arch:latest \
167-
nox -e ${{ matrix.nox-session }}
167+
bash -c "pip install -e .[dev-noxfile]; nox --install-only -e ${{ matrix.nox-session }}; pip freeze; nox -e ${{ matrix.nox-session }}"
168168
timeout-minutes: 30
169169

170170
# This ensures that the runner has access to the pip cache.

0 commit comments

Comments
 (0)