<commit_before>name: ci

on:
  pull_request:
    branches:
      - newsite

  push:
    branches:
      - newsite

jobs:
  test:
    name: Test run
    runs-on: ubuntu-latest
    strategy:
      matrix:
        os:
          - macOS-latest
          - ubuntu-latest
          - windows-latest
    steps:
      - uses: actions/checkout@master
      - name: run test
        env:
          REF: ${{ github.ref}}
        run: |
          echo Checking github env variables:
          echo ${{ github.actor }}
          echo ${{ github.event_name }}
          echo ${{ github.sha }}
          echo ${REF}
          IFS='/' read -r -a array <<< "$REF";
          echo PR number is :
          echo "${array[2]}";
  deploy:
    name: Deploy on surge
    runs-on: macOS-latest
    strategy:
      matrix:
        node-version:
          - 10
        python-version:
          - 3.7
    steps:
      - uses: actions/checkout@master
      - name: deploy in surge using grunt
        env:
          SURGE_TOKEN: ${{ secrets.SURGE_TOKEN}}
          SURGE_LOGIN: ${{ secrets.SURGE_LOGIN}}
          REF: ${{ github.ref}}
        run: |
          docker build -t numpy.org-newsite -f Dockerfile .
          docker ps -a
          IFS='/' read -r -a array <<< "$REF";
          docker run --env PR=${array[2]} numpy.org-newsite<commit_msg>Docker service uses<commit_after>name: ci

on:
  pull_request:
    branches:
      - newsite

  push:
    branches:
      - newsite

jobs:
  test:
    name: Test run
    runs-on: ubuntu-latest
    strategy:
      matrix:
        os:
          - macOS-latest
          - ubuntu-latest
          - windows-latest
    steps:
      - uses: actions/checkout@master
      - name: run test
        env:
          REF: ${{ github.ref}}
        run: |
          echo Checking github env variables:
          echo ${{ github.actor }}
          echo ${{ github.event_name }}
          echo ${{ github.sha }}
          echo ${REF}
          IFS='/' read -r -a array <<< "$REF";
          echo PR number is :
          echo "${array[2]}";
  deploy:
    name: Deploy on surge
    runs-on: macOS-latest
    strategy:
      matrix:
        node-version:
          - 10
        python-version:
          - 3.7
    steps:
      - uses: actions/checkout@master
      - uses: docker://alpine:3.8
      - name: deploy in surge using grunt
        env:
          SURGE_TOKEN: ${{ secrets.SURGE_TOKEN}}
          SURGE_LOGIN: ${{ secrets.SURGE_LOGIN}}
          REF: ${{ github.ref}}
        run: |
          docker build -t numpy.org-newsite -f Dockerfile .
          docker ps -a
          IFS='/' read -r -a array <<< "$REF";
          docker run --env PR=${array[2]} numpy.org-newsite
{'fraction_non_alphanumeric': 0.12230483271375464, 'fraction_numerical': 0.0052044609665427505, 'mean_word_length': 1.4375, 'pattern_counts': {'":': 0, '<': 15, '<?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': '485535', 'n_tokens_mistral': 877, 'n_tokens_neox': 834, 'n_words': 217}