From 5c3d1c747da18f09726e6ef23e82bdda47b2e97c Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Wed, 8 May 2024 10:16:38 +0100 Subject: [PATCH] Try a different approach --- .github/workflows/test-from-pypi.yml | 34 ++++++++++++---------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test-from-pypi.yml b/.github/workflows/test-from-pypi.yml index 44ef059c6..aa9937038 100644 --- a/.github/workflows/test-from-pypi.yml +++ b/.github/workflows/test-from-pypi.yml @@ -11,32 +11,26 @@ jobs: strategy: matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] - os: [ubuntu-latest, windows-latest, macos-latest, macos-13] - python-architecture: [x86, x64, arm64] - exclude: - - os: ubuntu-latest - python-architecture: arm64 - - os: ubuntu-latest - python-architecture: x86 - - os: windows-latest - python-architecture: arm64 - - os: macos-latest - python-architecture: x86 - - os: macos-latest - python-architecture: x64 - - os: macos-13 - python-architecture: x86 - - os: macos-13 - python-architecture: arm64 + platform: + - os: ubuntu-latest + architecture: x64 + - os: windows-latest + architecture: x64 + - os: windows-latest + architecture: x86 + - os: macos-latest + architecture: arm64 + - os: macos-13 + architecture: x64 - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.platform.os }} steps: - - name: Set up Python ${{ matrix.python-version }} (${{ matrix.python-architecture }}) + - name: Set up Python ${{ matrix.python-version }} (${{ matrix.platform.architecture }}) uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - architecture: ${{ matrix.python-architecture }} + architecture: ${{ matrix.platform.architecture }} allow-prereleases: true - name: Install test dependencies and Traits from PyPI sdist run: |