From 7e8e15a2ad8841c6b95b8b63367cc816d7578274 Mon Sep 17 00:00:00 2001 From: Kaze Wong Date: Tue, 28 Nov 2023 14:43:12 -0500 Subject: [PATCH] Update pre-commit.yml --- .github/workflows/pre-commit.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c2f7e71f..45ef3064 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -6,9 +6,23 @@ on: branches: [main] jobs: + pre-commit: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + python -m pip install . - uses: pre-commit/action@v3.0.0