From ac6310ec739295dd52e8fb36f39128f01658f257 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Thu, 14 Sep 2023 03:40:36 -0400 Subject: [PATCH] Switched to matrix approach. --- .github/workflows/build-test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index cf95210e1..8714f0d79 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -12,12 +12,15 @@ jobs: build: name: build runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8, 3.9, 3.10, 3.11] steps: - uses: actions/checkout@v2 - name: Setup python uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: ${{ matrix.python-version }} - name: Run image uses: abatilo/actions-poetry@v2.0.0 with: @@ -28,7 +31,7 @@ jobs: poetry build - name: Test run: | - tox + pytest - uses: actions/upload-artifact@v2.2.4 with: name: dist