From 103cd3a638d079c4ee4619d6b42cc82a8f3ec118 Mon Sep 17 00:00:00 2001 From: Baptiste Pasquier Date: Mon, 15 Apr 2024 17:30:04 +0200 Subject: [PATCH] Update CI workflow --- .github/workflows/ci.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d5b1987..dba2d00 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,15 +11,18 @@ jobs: python-version: ['3.11'] steps: - - uses: actions/checkout@v2 + - name: Check out repository + uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install requirements run: | python -m pip install --upgrade pip - pip install -r requirements-dev.txt + pip install pre-commit + - name: Run Pre commit hook (formatting, linting & tests) run: pre-commit run --all-files --hook-stage pre-push --show-diff-on-failure