|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + |
| 7 | +jobs: |
| 8 | + test: |
| 9 | + strategy: |
| 10 | + fail-fast: false |
| 11 | + matrix: |
| 12 | + os: [ubuntu-latest, macos-latest] |
| 13 | + runs-on: ${{ matrix.os }} |
| 14 | + |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + |
| 18 | + - name: Install dependencies (Linux) |
| 19 | + if: runner.os == 'Linux' |
| 20 | + run: | |
| 21 | + sudo apt-get update |
| 22 | + sudo apt-get install -y cmake bison flex libexpat1-dev uuid-dev \ |
| 23 | + libboost-dev libboost-regex-dev libboost-thread-dev \ |
| 24 | + libboost-filesystem-dev libboost-date-time-dev \ |
| 25 | + libboost-program-options-dev libboost-iostreams-dev \ |
| 26 | + libboost-log-dev libboost-test-dev |
| 27 | +
|
| 28 | + - name: Install dependencies (macOS) |
| 29 | + if: runner.os == 'macOS' |
| 30 | + run: brew install cmake boost bison flex expat |
| 31 | + |
| 32 | + - name: Fetch W3C test suites |
| 33 | + run: sh tests/fetch-test-suites.sh |
| 34 | + |
| 35 | + - name: Configure |
| 36 | + run: cmake -B build |
| 37 | + |
| 38 | + - name: Build |
| 39 | + run: cmake --build build -j4 |
| 40 | + |
| 41 | + - name: Run test suites |
| 42 | + run: > |
| 43 | + ctest --test-dir build --output-on-failure --timeout 600 |
| 44 | + -E 'test_(SPARQL|SPARQL11|QueryMap|ShEx)$' |
| 45 | +
|
| 46 | + # These suites carry known pre-existing failures: |
| 47 | + # - test_SPARQL11: md5/sha* builtins are unimplemented (8 cases) |
| 48 | + # - test_SPARQL: function_library expects CSV <foo> parsed as an IRI, |
| 49 | + # a csv-regex branch deliberately disabled upstream (~2013) |
| 50 | + # - test_QueryMap, test_ShEx: heap-layout-dependent nondeterminism in |
| 51 | + # the query rewriter / ShEx normalizer makes single cases flaky |
| 52 | + # Run them for visibility without gating the build. |
| 53 | + - name: Run suites with known pre-existing failures (non-blocking) |
| 54 | + continue-on-error: true |
| 55 | + run: > |
| 56 | + ctest --test-dir build --output-on-failure --timeout 600 |
| 57 | + -R 'test_(SPARQL|SPARQL11|QueryMap|ShEx)$' |
0 commit comments