Skip to content

use python c-api to capture stdout, rather than executing small script #15

use python c-api to capture stdout, rather than executing small script

use python c-api to capture stdout, rather than executing small script #15

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Format
run: cargo fmt --all --check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Lint
run: cargo clippy --all -- -D warnings
test:
name: Test (Python ${{ matrix.python_version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
python_version: ['3.12', '3.13']
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
allow-prereleases: true
- name: Build
run: cargo build
- name: Test
run: cargo test --verbose