From ed5dabe4321acc4588895fb7db434b23506881b9 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 3 May 2023 18:16:23 +0200 Subject: [PATCH] Update tests.yml --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a9637a4d..64475f65 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -108,23 +108,23 @@ jobs: steps: - name: Checkout capa with submodules # do only run if BN_SERIAL is available, have to do this in every step, see https://github.com/orgs/community/discussions/26726#discussioncomment-3253118 - if: ${{ env.BN_SERIAL }} != "" + if: ${{ env.BN_SERIAL != 0 }} uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 with: submodules: recursive - name: Set up Python ${{ matrix.python-version }} - if: ${{ env.BN_SERIAL }} != "" + if: ${{ env.BN_SERIAL != 0 }} uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0 with: python-version: ${{ matrix.python-version }} - name: Install pyyaml - if: ${{ env.BN_SERIAL }} != "" + if: ${{ env.BN_SERIAL != 0 }} run: sudo apt-get install -y libyaml-dev - name: Install capa - if: ${{ env.BN_SERIAL }} != "" + if: ${{ env.BN_SERIAL != 0 }} run: pip install -e .[dev] - name: install Binary Ninja - if: ${{ env.BN_SERIAL }} != "" + if: ${{ env.BN_SERIAL != 0 }} run: | mkdir ./.github/binja curl "https://raw.githubusercontent.com/Vector35/binaryninja-api/6812c97/scripts/download_headless.py" -o ./.github/binja/download_headless.py @@ -132,7 +132,7 @@ jobs: unzip .github/binja/BinaryNinja-headless.zip -d .github/binja/ python .github/binja/binaryninja/scripts/install_api.py --install-on-root --silent - name: Run tests - if: ${{ env.BN_SERIAL }} != "" + if: ${{ env.BN_SERIAL != 0 }} env: BN_LICENSE: ${{ secrets.BN_LICENSE }} run: pytest -v tests/test_binja_features.py # explicitly refer to the binja tests for performance. other tests run above.