From 2097eddd9e46d56c705645743d8c26e91d8db817 Mon Sep 17 00:00:00 2001 From: Hossam Hammady Date: Tue, 19 Dec 2023 20:42:25 -0500 Subject: [PATCH] Test multiple python versions using GH actions --- .github/workflows/run-tests.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index de58056..5b59f71 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -8,14 +8,22 @@ on: jobs: test: + strategy: + matrix: + python-version: + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - - name: Set up Python 3.11 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: '3.11' + python-version: ${{ matrix.python-version }} - name: Install dependencies run: pip install -r requirements-test.txt - name: Run tests