<commit_before>name: <NAME>

on:
  - push
  - pull_request

jobs:
  lint:
    name: Lint
    runs-on: ubuntu-latest

    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Install dependencies
        run: |
          sudo apt-get install python3-setuptools
          sudo pip3 install black flake8

      - name: Check black
        run: black --check operators

      - name: Check flake8
        run: cd operators && flake8

  build:
    name: Test
    runs-on: ubuntu-latest

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

      - uses: balchua/microk8s-actions@v0.2.2
        with:
          channel: "1.20/stable"
          addons: '["dns", "storage", "rbac"]'

      - name: Install dependencies
        run: |
          set -eux
          sudo snap install charm --classic
          sudo snap install juju --classic
          sudo snap install juju-helpers --classic
          sudo snap install juju-wait --classic
          sudo pip3 install charmcraft

      - name: Build Docker images
        run: |
          set -eux
          images=("katib-controller" "katib-ui" "katib-db-manager")
          folders=("katib-controller" "ui" "db-manager")<commit_msg>Switch to charmcraft snap for CI (#1574)<commit_after>name: <NAME>

on:
  - push
  - pull_request

jobs:
  lint:
    name: Lint
    runs-on: ubuntu-latest

    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Install dependencies
        run: |
          sudo apt-get install python3-setuptools
          sudo pip3 install black flake8

      - name: Check black
        run: black --check operators

      - name: Check flake8
        run: cd operators && flake8

  build:
    name: Test
    runs-on: ubuntu-latest

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

      - uses: balchua/microk8s-actions@v0.2.2
        with:
          channel: "1.20/stable"
          addons: '["dns", "storage", "rbac"]'

      - name: Install dependencies
        run: |
          set -eux
          sudo snap install charm --classic
          sudo snap install juju --classic
          sudo snap install juju-helpers --classic
          sudo snap install juju-wait --classic
          sudo snap install charmcraft --classic

      - name: Build Docker images
        run: |
          set -eux
          images=("katib-controller" "katib-ui" "katib-db-manager")
          folders=("katib-controller" "ui" "db-manager")
{'fraction_non_alphanumeric': 0.09659318637274548, 'fraction_numerical': 0.013226452905811623, 'mean_word_length': 1.736842105263158, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6258563', 'n_tokens_mistral': 805, 'n_tokens_neox': 755, 'n_words': 224}