From 0c0257ad1d7f4b50aff5eb199de3acab1d8a2724 Mon Sep 17 00:00:00 2001 From: Patrick Baus Date: Thu, 7 Dec 2023 03:51:20 +0100 Subject: [PATCH] Update pre-commit.yml Fix dependencies not installed --- .github/workflows/pre-commit.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7fe7e0c..934eb84 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -12,8 +12,15 @@ jobs: python-version: [ "3.10" ] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - name: Checkout source repository + uses: actions/checkout@v4 + - name: Set up python ${{ matrix.python-version }} + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - uses: pre-commit/action@v3.0.0 + - name: Install dependencies for testing + run: | + python3 -m pip install --upgrade pip + python3 -m pip install .[test] + - name: Run pre-commit + uses: pre-commit/action@v3.0.0