relational.write
- SQL statements are executed individually instead of in bulk for MySQL #373
#38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate JSON Schemas | |
on: | |
workflow_dispatch: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
generate-jsonschemas: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel poetry | |
- name: Install prettier | |
run: npm install --global prettier | |
- name: Build and Install DataYoga Core | |
run: | | |
cd core | |
poetry build | |
pip install dist/*.whl | |
- name: Generate DataYoga Job and Connections Schemas | |
run: | | |
python -c "import json; from datayoga_core.job import Job; schema = Job.get_json_schema(); open('schemas/job.schema.json', 'w').write(json.dumps(schema))" | |
python -c "import json; from datayoga_core.connection import Connection; schema = Connection.get_json_schema(); open('schemas/connections.schema.json', 'w').write(json.dumps(schema))" | |
- name: Prettify JSON Schema files | |
run: prettier --write "schemas/**/*.json" | |
- name: Push to repo | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git pull | |
git add . | |
if ! git diff --cached --exit-code; then | |
git commit -m "update json schemas" | |
git push | |
fi |