Skip to content

Improve Scanner logs & update config #3488

Improve Scanner logs & update config

Improve Scanner logs & update config #3488

Workflow file for this run

name: ModelScan Python REST API Unit Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
modelscan_build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.12']
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd lib/modelscan_api
python -m pip install -r requirements-dev.txt
- name: Run basic tests
run: |
cd lib/modelscan_api
python -m pytest
env:
PYTEST_RUN_PATH: "lib/modelscan_api"
- name: Run integration tests
run: |
cd lib/modelscan_api
python -m pytest -m integration
env:
PYTEST_RUN_PATH: "lib/modelscan_api"