Skip to content

init analyzer = None and rebind to guard NameError #24

init analyzer = None and rebind to guard NameError

init analyzer = None and rebind to guard NameError #24

name: Python tests on windows
env:
COLUMNS: 120
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: windows-latest
timeout-minutes: 20
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
# Use x86 python because of https://github.com/kevoreilly/CAPEv2/issues/168
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
architecture: 'x86'
- name: Install dependencies
run: pip install --upgrade pytest requests
- name: Run analyzer unit tests
run: |
cd analyzer/windows
pytest -v .
- name: Run agent unit tests
run: |
cd agent
pytest -v .