diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68351191a..3e62503e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,7 @@ on: pull_request: types: [opened, synchronize, reopened] push: - branches: [main, develop] - + branches: [main, develop] jobs: # Checks the style using the pre-commit hooks qa: @@ -17,14 +16,21 @@ jobs: # Only then, normal testing proceeds unit-tests: needs: qa - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.8", "3.9"] steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | @@ -48,14 +54,20 @@ jobs: regression-tests: needs: qa - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.8", "3.9"] steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: ${{ matrix.python-version }} - name: Install dependencies run: |