<commit_before>name: nightly.yml

on:
  # schedule:
  #   # * is a special character in YAML so you have to quote this string
  #   # runs daily at 00:30 am
  #   - cron:  '30 0 * * *'
  # temporary condition for testing
  push:
    branches:
      - pypi

jobs:
  deploy:
    if: github.repository == 'google-research/kubric'  # prevents action from running on forks
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.7
    - name: Install python requirements
      run: |
        python -m pip install --upgrade pip
        pip install -U -r requirements.txt
        pip install -U setuptools
        pip install -U twine
    - name: Check if changes in branch are executed
      run: |
        echo "I have been executed"
    - name: Build package and upload to test.pypi
      env:
        TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
        TWINE_PASSWORD: ${{ secrets.<PASSWORD>_PYPI_PASSWORD }}
      run: |
        python setup.py sdist bdist_wheel --microversioning
        twine check dist/*
        twine upload --repository testpypi dist/*<commit_msg>restored action daily scheduling, dropped microversioning<commit_after>name: nightly.yml

on:
  schedule:
    - cron:  '30 0 * * *' #< runs daily at 00:30 am
jobs:
  deploy:
    if: github.repository == 'google-research/kubric'  # prevents action from running on forks
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.7
    - name: Install python requirements
      run: |
        python -m pip install --upgrade pip
        pip install -U -r requirements.txt
        pip install -U setuptools
        pip install -U twine
    - name: Build package and upload to test.pypi
      env:
        TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
        TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
      run: |
        python setup.py sdist bdist_wheel
        twine check dist/*
        twine upload --repository testpypi dist/*
{'fraction_non_alphanumeric': 0.08878504672897196, 'fraction_numerical': 0.010280373831775701, 'mean_word_length': 2.2341389728096677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '3369852', 'n_tokens_mistral': 689, 'n_tokens_neox': 647, 'n_words': 211}