<commit_before>name: Test

on:
  push:
    branches: ["master"]
  pull_request:
    branches: ["master"]
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:

jobs:
  test-ubuntu:
    runs-on: ubuntu-latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v3
      - name: Run hosty with sudo
        run: sudo $GITHUB_WORKSPACE/hosty.sh
      - name: Run hosty in debug mode
        run: $GITHUB_WORKSPACE/hosty.sh -d
      #- name: Run hosty installer without sudo
      #  run: $GITHUB_WORKSPACE/install.sh
      #- name: Run hosty installer with sudo
      #  run: sudo $GITHUB_WORKSPACE/install.sh
      - name: Run hosty updater in debug mode
        run: $GITHUB_WORKSPACE/updater.sh -d
  test-mac:
    runs-on: macos-latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v3
      - name: Run hosty with sudo
        run: sudo $GITHUB_WORKSPACE/hosty.sh
      - name: Run hosty in debug mode
        run: $GITHUB_WORKSPACE/hosty.sh -d
      #- name: Run hosty installer without sudo
      #  run: $GITHUB_WORKSPACE/install.sh
      #- name: Run hosty installer with sudo
      #  run: sudo $GITHUB_WORKSPACE/install.sh
      - name: Run hosty updater in debug mode
        run: $GITHUB_WORKSPACE/updater.sh -d<commit_msg>add more tests to github action (#53)<commit_after>name: Test

on:
  push:
    branches: ["master"]
  pull_request:
    branches: ["master"]
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:

jobs:
  test-ubuntu:
    runs-on: ubuntu-latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v3
      - name: Run hosty with sudo
        run: sudo $GITHUB_WORKSPACE/hosty.sh
      - name: Run hosty in debug mode
        run: $GITHUB_WORKSPACE/hosty.sh -d
      - name: Run hosty updater in debug mode
        run: $GITHUB_WORKSPACE/updater.sh -d
  test-mac:
    runs-on: macos-latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v3
      - name: Run hosty with sudo
        run: sudo $GITHUB_WORKSPACE/hosty.sh
      - name: Run hosty in debug mode
        run: $GITHUB_WORKSPACE/hosty.sh -d
      - name: Run hosty updater in debug mode
        run: $GITHUB_WORKSPACE/updater.sh -d
  test-alpine:
    runs-on: ubuntu-latest
    container: alpine:latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v3
      - name: Install dependencies
        run: apk add curl gnupg
      - name: Run hosty without sudo
        run: $GITHUB_WORKSPACE/hosty.sh
      - name: Run hosty in debug mode
        run: $GITHUB_WORKSPACE/hosty.sh -d
      - name: Run hosty updater in debug mode
        run: $GITHUB_WORKSPACE/updater.sh -d
{'fraction_non_alphanumeric': 0.08924949290060852, 'fraction_numerical': 0.0037187288708586883, 'mean_word_length': 2.38558352402746, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5687387', 'n_tokens_mistral': 1036, 'n_tokens_neox': 1031, 'n_words': 298}