Skip to content

Merge pull request #150 from cmake-wheel/pre-commit-ci-update-config #416

Merge pull request #150 from cmake-wheel/pre-commit-ci-update-config

Merge pull request #150 from cmake-wheel/pre-commit-ci-update-config #416

Workflow file for this run

name: Test sdist on example
on: ["push", "pull_request"]
jobs:
test:
name: Test sdist on ${{ matrix.os }}
runs-on: ${{ matrix.os}}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
env:
SYSTEM_VERSION_COMPAT: 0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: setup
run: |
python -m pip install -U pip
python -m pip install -U build poetry
- name: install cmeel
run: python -m pip install ".[build]"
- name: build cmeel-example sdist
run: |
git clone --recursive https://github.com/cmake-wheel/cmeel-example
python -m build -nso dist cmeel-example
rm -rf cmeel-example
- name: install cmeel-example
run: python -m pip install dist/cmeel_example-*.tar.gz
- name: test module
run: python -c "import cmeel_example; assert cmeel_example.cmeel_add(3, 4) == 7"
- name: test executable
run: cmeel-add 3 4