YARA tests #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: YARA tests | |
on: | |
schedule: | |
- cron: '0 8 * * 1' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Checkout test files repo | |
uses: actions/checkout@v4 | |
with: | |
repository: CAPESandbox/CAPE-TestFiles | |
path: tests/data/ | |
- uses: ./.github/actions/python-setup/ | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo bash ./installer/cape2.sh yara | |
cd $GITHUB_WORKSPACE | |
bash -c "poetry run ./extra/yara_installer.sh" | |
- name: Run unit tests | |
run: poetry run pytest tests/test_yara.py -s --import-mode=append |