Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Aug 8, 2024
1 parent 35f5b62 commit d894180
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,7 @@ jobs:
ARTIFACT_URL: ${{ needs.build-linux-kernel.outputs.kernel-artifact-url }}
PYTHON: ${{ steps.py312.outputs.python-path }}
run: |
# Build all tests.
cargo build --tests
# Get a list of tests we just built.
IFS='' tests=$(cargo build -Z unstable-options --tests --build-plan | \
jq -r '
.invocations[] |
select(
.package_name == "blazesym" and
.outputs[0] != null and
(.outputs[0] | endswith(".rlib") | not) and
(.outputs[0] | contains("/build/") | not)
) |
.outputs[0]
')
cargo test --no-run
# Yes, there appears to be no way to just retrieve the
# uploaded artifact. One can't use actions/download-artifact
# and provide any of the outputs of actions/upload-artifact.
Expand All @@ -56,7 +43,7 @@ jobs:
cat <<EOF > main.sh
set -e -u -o pipefail
export PYTHON=${PYTHON}
${tests}
cargo test --include-ignored
EOF
chmod a+x main.sh
- name: Test
Expand Down

0 comments on commit d894180

Please sign in to comment.