| 1 |
name: tests |
| 2 |
on: |
| 3 |
- push |
| 4 |
- pull_request |
| 5 |
- workflow_dispatch |
| 6 |
|
| 7 |
jobs: |
| 8 |
test: |
| 9 |
runs-on: ${{ matrix.os }}-latest |
| 10 |
strategy: |
| 11 |
fail-fast: false |
| 12 |
matrix: |
| 13 |
os: |
| 14 |
- ubuntu |
| 15 |
- windows |
| 16 |
- macos |
| 17 |
python: |
| 18 |
- '3.9' |
| 19 |
- '3.10' |
| 20 |
- '3.11' |
| 21 |
- '3.12' |
| 22 |
- '3.13' |
| 23 |
steps: |
| 24 |
- uses: actions/checkout@v4 |
| 25 |
- uses: actions/setup-python@v5 |
| 26 |
with: |
| 27 |
python-version: ${{ matrix.python }} |
| 28 |
allow-prereleases: true |
| 29 |
|
| 30 |
- run: echo "PATH=$env:Path;C:\msys64\usr\bin" | Out-File -FilePath "$env:GITHUB_ENV" -Append |
| 31 |
if: runner.os == 'Windows' |
| 32 |
- run: pacman --noconfirm -S bison flex |
| 33 |
if: runner.os == 'Windows' |
| 34 |
- uses: bus1/cabuild/action/msdevshell@v1 |
| 35 |
with: |
| 36 |
architecture: x64 |
| 37 |
if: runner.os == 'Windows' |
| 38 |
|
| 39 |
- run: brew install bison |
| 40 |
if: runner.os == 'macOS' |
| 41 |
- run: echo "/opt/homebrew/opt/bison/bin" >> $GITHUB_PATH |
| 42 |
if: runner.os == 'macOS' |
| 43 |
|
| 44 |
- run: python -m pip install meson-python ninja pytest |
| 45 |
- run: python -m pip install -v --no-build-isolation -Cbuild-dir=build -Csetup-args=-Dtests=enabled -e . |
| 46 |
- run: pytest beancount |
| 47 |
|
| 48 |
- run: meson test -C build/ |