diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 2e8bdedd2..a6838c6aa 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -6,17 +6,12 @@ on: jobs: tests: - name: 'Compile examples on py${{ matrix.python-version }}' + name: '${{ matrix.python-version }}' runs-on: ubuntu-latest strategy: fail-fast: false matrix: - include: - - python-version: '3.6' - - python-version: '3.7' - - python-version: '3.8' - - python-version: '3.9' - - python-version: '3.10' + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pip-install.yml b/.github/workflows/pip-install.yml index c3cf55f41..e8917ff0e 100644 --- a/.github/workflows/pip-install.yml +++ b/.github/workflows/pip-install.yml @@ -31,21 +31,18 @@ jobs: run: | python -m pip install cibuildwheel==2.12.1 - - name: Check if allowed operating system (Linux/Mac) - if: runner.os != 'Linux' || runner.os != 'macOS' - run: | - echo "Cannot build on this operating system." - exit 1 - - name: Build wheel run: | - if [[ "$RUNNER_OS" == "Linux" ]]; then - CIBW_SKIP='*-manylinux_i686' CIBW_MANYLINUX_X86_64_IMAGE=manylinux2014 python -m cibuildwheel --output-dir wheelhouse - else + if [ "$RUNNER_OS" == "Linux" || "$RUNNER_OS" == "macOS"]; then python -m cibuildwheel --output-dir wheelhouse - fi + else + echo "$RUNNER_OS not supported" + exit 1 + fi env: CIBW_BUILD: 'cp3?-*' + CIBW_SKIP: '*-manylinux_i686' + CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 - uses: actions/upload-artifact@v4 with: