From e8d1532318a9482613c476a18baf9fdaf72ed7bb Mon Sep 17 00:00:00 2001 From: cyschneck <22159116+cyschneck@users.noreply.github.com> Date: Fri, 5 Jan 2024 19:09:54 -0700 Subject: [PATCH] update workflow testing multiple python versions --- .github/workflows/pytests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytests.yml b/.github/workflows/pytests.yml index c0419b9..cb0cc69 100644 --- a/.github/workflows/pytests.yml +++ b/.github/workflows/pytests.yml @@ -14,16 +14,23 @@ jobs: runs-on: ubuntu-20.04 # specifically calls the version number instead of lastest to work on 'act' + strategy: + matrix: + os: ["ubuntu-latest"] + python-version: ['3.9', '3.10', '3.11', 3.12'] + + name: Python (${{ matrix.python-version }} on ${{ matrix.os }}) steps: - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python uses: actions/setup-python@v3 with: - python-version: '3.9' + python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True pip install -r requirements.txt - name: Test with pytest run: | - python3 -m pytest + python -m pytest