File: tests.yaml

package info (click to toggle)
beancount 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,060 kB
  • sloc: python: 22,647; yacc: 753; ansic: 586; lex: 494; cpp: 44; makefile: 39
file content (48 lines) | stat: -rw-r--r-- 1,267 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/