diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 2b11178b..46944b4f 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -12,3 +12,5 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.1 + with: + python-version: "3.10" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51164501..a9a93da5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - id: python-tests name: Run Python Tests with pytest language: system - entry: bash -c "python -m venv venv && source venv/bin/activate && cd model_server && pip install -r requirements.txt && pytest --maxfail=5 --disable-warnings" + entry: bash -c "python -m venv venv && source venv/bin/activate && cd model_server && pip install -r requirements.txt && PYTHONPATH=. pytest --maxfail=5 --disable-warnings" types: [python]