Skip to content

Use static C++ library by default (#86) #28

Use static C++ library by default (#86)

Use static C++ library by default (#86) #28

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
if: ${{ matrix.os != 'windows-latest' }}
- name: Install dependencies
run: pip install -r tests/requirements.txt
- name: Test with pytest
run: pytest --ignore tests/test_samples.py
env:
PYTHON_CONFIG: python3-config
- name: Check self build (in-place)
run: python -m pymsbuild
env:
PYTHON_CONFIG: python3-config
- name: Check self build (sdist)
run: python -m pymsbuild sdist
env:
PYTHON_CONFIG: python3-config
- name: Check self build (wheel)
run: python -m pymsbuild wheel
env:
PYTHON_CONFIG: python3-config
- name: Check samples
run: pytest tests/test_samples.py
env:
PYTHON_CONFIG: python3-config