From 35435486d88d62902f7a67345c71b1ca08bf6169 Mon Sep 17 00:00:00 2001 From: Thomas Bouquet Date: Thu, 19 Oct 2023 22:53:41 +0200 Subject: [PATCH] CI for different python versions and different os --- .github/workflows/test.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b39c87cc..cce25025 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - github-actions-test pull_request: branches: - main @@ -14,17 +13,23 @@ on: workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest + example_matrix: + strategy: + matrix: + python: ["3.6", "3.7", "3.8", "3.9", "3.10"] + os: [ubuntu-latest, windows-latest, macos-latest] + build: + name: Install and test package on ${{ matrix.os }} for Python ${{ matrix.python }} + runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Setup Python + - name: Setup Python ${{ matrix.python }} uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: ${{ matrix.python }} - name: Install package [pip] run: |