Skip to content
name: Babylon generation
on:
push:
branches: [ '*' ]
workflow_dispatch:
inputs:
logLevel:
default: 'warning'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
# python-version: [3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@master
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 1 # Because of this, you will fail to push refs to dest repo
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python -m pip install git+https://github.com/ashtadhyayi/data_curation@master
# - name: Create local changes
# run: |
# python -c "from ashtadhyayi_data.reader.ashtadhyayi_com import transformer; transformer.separate_commentaries(indir=\"`pwd`/sutraani\", outdir=\"`pwd`/processed_data/sUtra-commentaries/\", dry_run=False)"
# - name: Commit files
# run: |
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git add --all
# git commit -m "Add changes" -a
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: processed_data
# force: true