increase backend limit to pull more than 100 images #3491
This file contains hidden or 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: 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" |