<commit_before>name: CI

on:
  push:
    branches:
      - master
      - devel
  pull_request:
    branches:
      - devel
jobs:
  test:
    name: OTP-${{matrix.otp}}, PG-${{matrix.pg}}, PostGIS-${{matrix.postgis}}, OS-${{matrix.os}}
    runs-on: ${{matrix.os}}
    strategy:
      fail-fast: false
      matrix:
        os:
          - "ubuntu-18.04"
        pg:
          - 10
        postgis:
          - "2.4"
        otp:
          - "24.0"
          - "23.3"
          - "22.3"
          - "21.3"
          - "20.3"
          - "19.3"
        include:
          - otp: "24.0"
            os: "ubuntu-20.04"
            pg: 12
            postgis: 3
    # env:
    #   PATH: ".:/usr/lib/postgresql/12/bin:$PATH"
    env:
      SHELL: /bin/sh            # needed for erlexec
    steps:
      - uses: actions/checkout@v2

      - uses: erlef/setup-beam@v1
        with:
          otp-version: ${{matrix.otp}}

      - name: Setup postgresql server with postgis
        run: sudo apt install postgresql-${{matrix.pg}} postgresql-contrib-${{matrix.pg}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}}-scripts

      - name: elvis
        run: make elvis

      - name: Common test, eunit, coverage
        run: PATH=$PATH:/usr/lib/postgresql/${{matrix.pg}}/bin/ make test

      - name: Upload CT logs artifact
        uses: actions/upload-artifact@v2
        if: failure()
        with:
          name: ct_report_pg-${{matrix.pg}}_otp-${{matrix.otp}}
          path: |<commit_msg>Run all the tests on PG-12, except OTP-19<commit_after>name: CI

on:
  push:
    branches:
      - master
      - devel
  pull_request:
    branches:
      - devel
jobs:
  test:
    name: OTP-${{matrix.otp}}, PG-${{matrix.pg}}, PostGIS-${{matrix.postgis}}, OS-${{matrix.os}}
    runs-on: ${{matrix.os}}
    strategy:
      fail-fast: false
      matrix:
        os:
          - "ubuntu-20.04"
        pg:
          - 12
        postgis:
          - 3
        otp:
          - "24.0"
          - "23.3"
          - "22.3"
          - "21.3"
          - "20.3"
        include:
          - otp: "19.3"
            os: "ubuntu-18.04"
            pg: 10
            postgis: "2.4"
    # env:
    #   PATH: ".:/usr/lib/postgresql/12/bin:$PATH"
    env:
      SHELL: /bin/sh            # needed for erlexec
    steps:
      - uses: actions/checkout@v2

      - uses: erlef/setup-beam@v1
        with:
          otp-version: ${{matrix.otp}}

      - name: Setup postgresql server with postgis
        run: sudo apt install postgresql-${{matrix.pg}} postgresql-contrib-${{matrix.pg}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}}-scripts

      - name: elvis
        run: make elvis

      - name: Common test, eunit, coverage
        run: PATH=$PATH:/usr/lib/postgresql/${{matrix.pg}}/bin/ make test

      - name: Upload CT logs artifact
        uses: actions/upload-artifact@v2
        if: failure()
        with:
          name: ct_report_pg-${{matrix.pg}}_otp-${{matrix.otp}}
          path: |
{'fraction_non_alphanumeric': 0.1592891760904685, 'fraction_numerical': 0.026817447495961228, 'mean_word_length': 1.5714285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3272901', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1083, 'n_words': 212}