iglesias is building Python extensions with nanobind #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nanobind | |
run-name: ${{ github.actor }} is building Python extensions with nanobind | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: sh | |
working-directory: . | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
#- name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
# with: | |
# detached: true | |
- name: Python setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.9' | |
- name: Install Python development dependency | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3.11-dev | |
python -m pip install --upgrade pip | |
pip install robotframework | |
# pip install -r requirements.txt | |
- name: Build | |
run: ./build_nb.sh | |
- name: Test | |
working-directory: ${{github.workspace}} | |
run: python3.11 nob.py | |
- name: Robot | |
run: PYTHONPATH=.:robot robot -d logs robot/NobTestSuite.robot |