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