Update python-requires in pyproject.toml #132
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: tests | |
on: | |
- push | |
- pull_request | |
- workflow_dispatch | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu | |
- windows | |
- macos | |
python: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
allow-prereleases: true | |
- run: echo "PATH=$env:Path;C:\msys64\usr\bin" | Out-File -FilePath "$env:GITHUB_ENV" -Append | |
if: runner.os == 'Windows' | |
- run: pacman --noconfirm -S bison flex | |
if: runner.os == 'Windows' | |
- uses: bus1/cabuild/action/msdevshell@v1 | |
with: | |
architecture: x64 | |
if: runner.os == 'Windows' | |
- run: brew install bison | |
if: runner.os == 'macOS' | |
- run: echo "/opt/homebrew/opt/bison/bin" >> $GITHUB_PATH | |
if: runner.os == 'macOS' | |
- run: python -m pip install meson-python ninja pytest | |
- run: python -m pip install -v --no-build-isolation -Cbuild-dir=build -Csetup-args=-Dtests=enabled -e . | |
- run: pytest beancount | |
- run: meson test -C build/ |