Skip to content

chore: Bump host CPython version #240

chore: Bump host CPython version

chore: Bump host CPython version #240

Workflow file for this run

name: Build and Test Matrix
on: push
defaults:
run:
shell: bash
jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
cancel_others: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
build:
name: ${{ matrix.config.name }}
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows (MSVC)",
os: windows-latest,
build_type: "Release",
cc: "cl",
cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
generators: "Visual Studio 17 2022",
target: "ALL_BUILD"
}
- {
name: "Ubuntu (Clang-14)",
os: ubuntu-latest,
build_type: "Release",
cc: "clang-14",
cxx: "clang++-14",
generators: "Ninja",
target: "all"
}
- {
name: "Ubuntu (GCC-11)",
os: ubuntu-latest,
build_type: "Release",
cc: "gcc-11",
cxx: "g++-11",
generators: "Ninja",
target: "all"
}
- {
name: "macOS (Clang)",
os: macos-latest,
build_type: "Release",
cc: "clang",
cxx: "clang++",
generators: "Ninja",
target: "all"
}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Print env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
- name: Install
if: runner.os == 'Linux'
run: |
python -m pip install pip --upgrade
SKBUILD_CMAKE_ARGS="-DDIPTEST_ENABLE_EXT_TESTS=ON" pip install ".[test]" -v
- name: Install
if: runner.os != 'Linux'
run: |
python -m pip install pip --upgrade
pip install ".[test]" -v
- name: Test
run: |
cd tests
pytest