From 6ba7b72cf49deb5e31e1464b9a94d3ab8b4936bc Mon Sep 17 00:00:00 2001 From: Michaelyin Date: Wed, 1 Nov 2023 15:52:31 +0800 Subject: [PATCH] update ci --- .github/workflows/runtests.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index d730d54..6801adb 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -9,15 +9,19 @@ on: jobs: runtests: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Install dependencies - run: | - pip install -r requirements-dev.txt - - name: Run tests - run: | - tox + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10' ] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -r requirements-dev.txt + - name: Run tests + run: | + tox