diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 26811102..0cb62115 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,14 +17,19 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install pre-commit - run: dnf install -y pre-commit git + - name: Install dependencies + run: | + dnf install -y git + pip install poetry>=1.2 - name: Mark the working directory as safe for Git run: git config --global --add safe.directory $PWD + - name: Install the project + run: poetry install + - name: Run pre-commit checks - run: pre-commit run --all-files + run: poetry run pre-commit run --all-files licenses: diff --git a/tox.ini b/tox.ini index 53eef1d7..2c607ec1 100644 --- a/tox.ini +++ b/tox.ini @@ -18,7 +18,7 @@ commands = poetry run pytest {posargs} [testenv:checks] -commands = pre-commit run --all-files +commands = poetry run pre-commit run --all-files [testenv:docs] changedir = datagrepper/docs