<commit_before>name: On push

on:
  push:
    branches:
      - py3

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7
      - name: Install Dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r src/requirements.txt
      - name: Run Tests
        run: |
          ./ops/run_tests.sh
  deploy-web:
    name: Deploy Web Service
    runs-on: ubuntu-latest
    needs: [test]
    if: contains(github.event.commits[0].message, '[nodeploy]') == false
    steps:
      - uses: actions/checkout@v1
      - name: Deploy with Google Cloud Platform
        uses: actions-hub/gcloud@268.0.0
        env:
          PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
          APPLICATION_CREDENTIALS: ${{ secrets.GCLOUD_AUTH }}
        with:
          args: app deploy src/web.yaml --version 1 --quiet
  deploy-api:
      name: Deploy API Service
      runs-on: ubuntu-latest
      needs: [test]
      if: contains(github.event.commits[0].message, '[nodeploy]') == false
      steps:
        - uses: actions/checkout@v1
        - name: Deploy with Google Cloud Platform
          uses: actions-hub/gcloud@268.0.0
          env:
            PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
            APPLICATION_CREDENTIALS: ${{ secrets.GCLOUD_AUTH }}
          with:
            args: app deploy src/api.yaml --version 1 --quiet<commit_msg>Add ci requirements to deploy. [nodeploy]<commit_after>name: On push

on:
  push:
    branches:
      - py3

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7
      - name: Install Dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements_ci.txt
          pip install -r src/requirements.txt
      - name: Run Tests
        run: |
          ./ops/run_tests.sh
  deploy-web:
    name: Deploy Web Service
    runs-on: ubuntu-latest
    needs: [test]
    if: contains(github.event.commits[0].message, '[nodeploy]') == false
    steps:
      - uses: actions/checkout@v1
      - name: Deploy with Google Cloud Platform
        uses: actions-hub/gcloud@268.0.0
        env:
          PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
          APPLICATION_CREDENTIALS: ${{ secrets.GCLOUD_AUTH }}
        with:
          args: app deploy src/web.yaml --version 1 --quiet
  deploy-api:
    name: Deploy API Service
    runs-on: ubuntu-latest
    needs: [test]
    if: contains(github.event.commits[0].message, '[nodeploy]') == false
    steps:
      - uses: actions/checkout@v1
      - name: Deploy with Google Cloud Platform
        uses: actions-hub/gcloud@268.0.0
        env:
          PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }}
          APPLICATION_CREDENTIALS: ${{ secrets.GCLOUD_AUTH }}
        with:
          args: app deploy src/api.yaml --version 1 --quiet
{'fraction_non_alphanumeric': 0.10982286634460547, 'fraction_numerical': 0.014814814814814815, 'mean_word_length': 1.9385052034058656, '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': '2328999', 'n_tokens_mistral': 1026, 'n_tokens_neox': 991, 'n_words': 246}