From ece440487e11ff88621eed7fdaa21022d4eff00e Mon Sep 17 00:00:00 2001 From: Nikitas Rontsis Date: Mon, 21 Oct 2024 17:55:41 +0000 Subject: [PATCH] Fix pre-commit attempt 2 --- .github/workflows/pre-commit.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 72fdced..691674e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,4 +8,13 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - - uses: pre-commit/action@v3.0.0 \ No newline at end of file + - name: Set up Python virtual environment + run: | + python -m venv workspace/.venv # Create virtual environment in workspace/.venv + source workspace/.venv/bin/activate # Activate the virtual environment + python -m pip install --upgrade pip # Upgrade pip + pip install -r requirements.txt # Install dependencies from requirements.txt + - name: Run pre-commit + uses: pre-commit/action@v3.0.0 + with: + extra_args: '--all-files' \ No newline at end of file