<commit_before>name: make installcheck
on: [push, pull_request]

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        pg:
          - 15
          - 14
          - 13
          - 12
          - 11
          - 10

    name: PostgreSQL ${{ matrix.pg }}
    runs-on: ubuntu-latest
    container: pgxn/pgxn-tools
    steps:

      - name: Start PostgreSQL ${{ matrix.pg }}
        run: pg-start ${{ matrix.pg }}

      - name: Install build-dependencies
        run: apt-get install -y liblz4-dev libreadline-dev zlib1g-dev

      - name: Check out the repo
        uses: actions/checkout@v2

      - name: Put pg_repack on PATH
        run: echo "$PWD/bin" >> $GITHUB_PATH

      - name: Create testts directory
        run: sudo -u postgres mkdir /tmp/testts

      - name: Create testts tablespace
        run: sudo -u postgres psql -c "CREATE TABLESPACE testts LOCATION '/tmp/testts'"

      - name: Test on PostgreSQL ${{ matrix.pg }}
        run: pg-build-test

      - name: Show regression.diffs
        if: ${{ failure() }}
        run: cat regress/regression.diffs<commit_msg>add missing build dependency libzstd-dev for github builds<commit_after>name: make installcheck
on: [push, pull_request]

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        pg:
          - 15
          - 14
          - 13
          - 12
          - 11
          - 10

    name: PostgreSQL ${{ matrix.pg }}
    runs-on: ubuntu-latest
    container: pgxn/pgxn-tools
    steps:

      - name: Start PostgreSQL ${{ matrix.pg }}
        run: pg-start ${{ matrix.pg }}

      - name: Install build-dependencies
        run: apt-get install -y liblz4-dev libreadline-dev zlib1g-dev libzstd-dev

      - name: Check out the repo
        uses: actions/checkout@v2

      - name: Put pg_repack on PATH
        run: echo "$PWD/bin" >> $GITHUB_PATH

      - name: Create testts directory
        run: sudo -u postgres mkdir /tmp/testts

      - name: Create testts tablespace
        run: sudo -u postgres psql -c "CREATE TABLESPACE testts LOCATION '/tmp/testts'"

      - name: Test on PostgreSQL ${{ matrix.pg }}
        run: pg-build-test

      - name: Show regression.diffs
        if: ${{ failure() }}
        run: cat regress/regression.diffs
{'fraction_non_alphanumeric': 0.10437859354268023, 'fraction_numerical': 0.013268465280849183, 'mean_word_length': 1.7891491985203452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3375039', 'n_tokens_mistral': 770, 'n_tokens_neox': 706, 'n_words': 207}