From a38b5989cd33d70630f2222f6c5a304d21b777e9 Mon Sep 17 00:00:00 2001 From: cotran Date: Wed, 16 Oct 2024 15:51:12 -0700 Subject: [PATCH] fix precommit --- .github/workflows/pre-commit.yml | 2 ++ .pre-commit-config.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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]