<commit_before>name: SPM build & test

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    strategy:
      matrix:
        destination:
          - "platform=iOS Simulator,OS=15.0,name=iPhone 13"
          - "platform=macOS,arch=x86_64"
          # - 'platform=macOS,arch=arm64' # Uncomment once https://github.com/actions/virtual-environments/issues/2187 resolved
        xcode: ["13.1"]
        os: ["macos-11"]
    runs-on: ${{ matrix.os }}
    steps:
      - name: "Choose Xcode"
        uses: maxim-lobanov/setup-xcode@v1
        with:
          xcode-version: ${{ matrix.xcode }}
      - uses: actions/checkout@v2
      - name: Checkout LFS objects
        run: git lfs checkout
      - name: Build
        run: xcodebuild build -scheme Carpaccio -destination '${{matrix.destination}}'
  test:
    strategy:
      matrix:
        destination:
          - "platform=macOS,arch=x86_64"
          # Uncomment / merge back to the `build` job once `exifdump` is separated to its own Package.swift
          # exifdump being a "tool" type target induces right now the following fail (with Xcode 13.1):
          # "unable to resolve product type 'com.apple.product-type.tool' for platform 'iphonesimulator"
          # - 'platform=iOS Simulator,OS=15.0,name=iPhone 13'
          # Uncomment once https://github.com/actions/virtual-environments/issues/2187 resolved
          # - 'platform=macOS,arch=arm64'
        xcode: ["13.1"]
        os: ["macos-11"]
    runs-on: ${{ matrix.os }}
    steps:
      - name: "Choose Xcode"
        uses: maxim-lobanov/setup-xcode@v1
        with:
          xcode-version: ${{ matrix.xcode }}
      - uses: actions/checkout@v2
      - name: Checkout LFS objects
        run: git lfs checkout
      - name: Run tests
        run: swift test --enable-code-coverage --enable-test-discovery
      - name: Test coverage
        uses: mattpolzin/swift-codecov-action@0.6.0
        with:
          MINIMUM_COVERAGE: 38
<commit_msg>Reverts back to the coverage tool that worked. No thresholds for now.<commit_after>name: SPM build & test

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    strategy:
      matrix:
        destination:
          - "platform=iOS Simulator,OS=15.0,name=iPhone 13"
          - "platform=macOS,arch=x86_64"
          # - 'platform=macOS,arch=arm64' # Uncomment once https://github.com/actions/virtual-environments/issues/2187 resolved
        xcode: ["13.1"]
        os: ["macos-11"]
    runs-on: ${{ matrix.os }}
    steps:
      - name: "Choose Xcode"
        uses: maxim-lobanov/setup-xcode@v1
        with:
          xcode-version: ${{ matrix.xcode }}
      - uses: actions/checkout@v2
      - name: Checkout LFS objects
        run: git lfs checkout
      - name: Build
        run: xcodebuild build -scheme Carpaccio -destination '${{matrix.destination}}'
  test:
    strategy:
      matrix:
        destination:
          - "platform=macOS,arch=x86_64"
          # Uncomment / merge back to the `build` job once `exifdump` is separated to its own Package.swift
          # exifdump being a "tool" type target induces right now the following fail (with Xcode 13.1):
          # "unable to resolve product type 'com.apple.product-type.tool' for platform 'iphonesimulator"
          # - 'platform=iOS Simulator,OS=15.0,name=iPhone 13'
          # Uncomment once https://github.com/actions/virtual-environments/issues/2187 resolved
          # - 'platform=macOS,arch=arm64'
        xcode: ["13.1"]
        os: ["macos-11"]
    runs-on: ${{ matrix.os }}
    steps:
      - name: "Choose Xcode"
        uses: maxim-lobanov/setup-xcode@v1
        with:
          xcode-version: ${{ matrix.xcode }}
      - uses: actions/checkout@v2
      - name: Checkout LFS objects
        run: git lfs checkout
      - name: Run tests
        run: swift test --enable-code-coverage --enable-test-discovery
      - name: Test coverage
        uses: maxep/spm-lcov-action@0.3.0
        with:
          output-file: ./coverage/lcov.info

{'fraction_non_alphanumeric': 0.11966444608931656, 'fraction_numerical': 0.025166543301258327, 'mean_word_length': 2.1846032992930087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6701740', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1285, 'n_words': 315}