Skip to content

Commit

Permalink
Debug Darwin failure
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Feb 15, 2023
1 parent 7c4b513 commit 33da365
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ jobs:
name: '${{ env.CACHIX_NAME }}'
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix --experimental-features 'nix-command flakes' flake check -L
- run: |
if ! failed=$(nix --experimental-features 'nix-command flakes' build .#nix.python-bindings --keep-failed -L 2>&1 | tee /dev/stderr | grep -oP "(?<=note: keeping build directory ').*(?=')"; then
echo "artifactPath=$failed" >> $GITHUB_ENV
fi
- uses: actions/upload-artifact@v3
with:
name: failed-python-bindings
path: ${{ env.artifactPath }}


check_secrets:
permissions:
Expand Down
5 changes: 5 additions & 0 deletions python/test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
set -x
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

cd "$SCRIPT_DIR"/../tests

source init.sh

nix show-config >&2
which python >&2
realpath $(which python) >&2

python "$SCRIPT_DIR"/tests.py

0 comments on commit 33da365

Please sign in to comment.