From c4c6ef2d7843a2db407d720ab3f9f6b3f9e95673 Mon Sep 17 00:00:00 2001 From: Joe Schiff <41972063+JoeSchiff@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:40:06 -0400 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 44 ++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index d9b79f1..e750c0c 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -13,21 +13,31 @@ permissions: contents: read jobs: - build: - - runs-on: ubuntu-latest - + run-tests: + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + python-version: + - "3.9" + - "3.10" + + name: Test + runs-on: ${{ matrix.os }} + steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pytest cython - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Test with pytest - run: | - pytest + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest cython + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Test with pytest + run: pytest