From 568bce2f45bc63cec08c92e8713c2cd5c3728e82 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sun, 23 Feb 2025 00:15:35 +0100 Subject: [PATCH] Add matrix test + set baseline version to 3.13 --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ce1dff..a650aa6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: ${{ runner.os }}-poetry- - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.13' - name: Install poetry uses: abatilo/actions-poetry@v4.0.0 with: @@ -31,17 +31,20 @@ jobs: - uses: pre-commit/action@v3.0.1 test: runs-on: ubuntu-20.04 + strategy: + matrix: + python-version: ['3.13', '3.12', '3.11', '3.10'] steps: - uses: actions/checkout@master - uses: actions/cache@v4 with: path: ~/.local/share/virtualenvs - key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }} restore-keys: | ${{ runner.os }}-poetry- - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '${{ matrix.python-version }}' - name: Install poetry uses: abatilo/actions-poetry@v4.0.0 with: