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