Skip to content

run main.py

run main.py #3323

Workflow file for this run

name: run main.py
on:
push:
branches:
- "main"
schedule:
- cron: "0 * * * *" # Every hour at the top of the hour
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.9" # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
REQUIRED_RESPONSES: ${{ secrets.REQUIRED_RESPONSES }}
# Argilla API URLs
ARGILLA_API_URL_DUTCH: ${{ secrets.ARGILLA_API_URL_DUTCH }}
ARGILLA_API_URL_SPANISH: ${{ secrets.ARGILLA_API_URL_SPANISH }}
ARGILLA_API_URL_MALAGASY: ${{ secrets.ARGILLA_API_URL_MALAGASY }}
ARGILLA_API_URL_GERMAN: ${{ secrets.ARGILLA_API_URL_GERMAN }}
ARGILLA_API_URL_SWAHILI: ${{ secrets.ARGILLA_API_URL_SWAHILI }}
ARGILLA_API_URL_FILIPINO: ${{ secrets.ARGILLA_API_URL_FILIPINO }}
ARGILLA_API_URL_ARABIC: ${{ secrets.ARGILLA_API_URL_ARABIC }}
ARGILLA_API_URL_TAMIL: ${{ secrets.ARGILLA_API_URL_TAMIL }}
ARGILLA_API_URL_CZECH: ${{ secrets.ARGILLA_API_URL_CZECH }}
ARGILLA_API_URL_HUNGARIAN: ${{ secrets.ARGILLA_API_URL_HUNGARIAN }}
ARGILLA_API_URL_RUSSIAN: ${{ secrets.ARGILLA_API_URL_RUSSIAN }}
ARGILLA_API_URL_GREEK: ${{ secrets.ARGILLA_API_URL_GREEK }}
# Argilla API Keys
ARGILLA_API_KEY_DUTCH: ${{ secrets.ARGILLA_API_KEY_DUTCH }}
ARGILLA_API_KEY_SPANISH: ${{ secrets.ARGILLA_API_KEY_SPANISH }}
ARGILLA_API_KEY_MALAGASY: ${{ secrets.ARGILLA_API_KEY_MALAGASY }}
ARGILLA_API_KEY_GERMAN: ${{ secrets.ARGILLA_API_KEY_GERMAN }}
ARGILLA_API_KEY_SWAHILI: ${{ secrets.ARGILLA_API_KEY_SWAHILI }}
ARGILLA_API_KEY_FILIPINO: ${{ secrets.ARGILLA_API_KEY_FILIPINO }}
ARGILLA_API_KEY_ARABIC: ${{ secrets.ARGILLA_API_KEY_ARABIC }}
ARGILLA_API_KEY_TAMIL: ${{ secrets.ARGILLA_API_KEY_TAMIL }}
ARGILLA_API_KEY_CZECH: ${{ secrets.ARGILLA_API_KEY_CZECH }}
ARGILLA_API_KEY_HUNGARIAN: ${{ secrets.ARGILLA_API_KEY_HUNGARIAN }}
ARGILLA_API_KEY_RUSSIAN: ${{ secrets.ARGILLA_API_KEY_RUSSIAN }}
ARGILLA_API_KEY_GREEK: ${{ secrets.ARGILLA_API_KEY_GREEK }}
# Source Datasets
SOURCE_DATASET_DUTCH: ${{ secrets.SOURCE_DATASET_DUTCH }}
SOURCE_DATASET_SPANISH: ${{ secrets.SOURCE_DATASET_SPANISH }}
SOURCE_DATASET_MALAGASY: ${{ secrets.SOURCE_DATASET_MALAGASY }}
SOURCE_DATASET_GERMAN: ${{ secrets.SOURCE_DATASET_GERMAN }}
SOURCE_DATASET_SWAHILI: ${{ secrets.SOURCE_DATASET_SWAHILI }}
SOURCE_DATASET_FILIPINO: ${{ secrets.SOURCE_DATASET_FILIPINO }}
SOURCE_DATASET_ARABIC: ${{ secrets.SOURCE_DATASET_ARABIC }}
SOURCE_DATASET_TAMIL: ${{ secrets.SOURCE_DATASET_TAMIL }}
SOURCE_DATASET_CZECH: ${{ secrets.SOURCE_DATASET_CZECH }}
SOURCE_DATASET_HUNGARIAN: ${{ secrets.SOURCE_DATASET_HUNGARIAN }}
SOURCE_DATASET_RUSSIAN: ${{ secrets.SOURCE_DATASET_RUSSIAN }}
SOURCE_DATASET_GREEK: ${{ secrets.SOURCE_DATASET_GREEK }}
# Source Workspaces
SOURCE_WORKSPACE_DUTCH: ${{ secrets.SOURCE_WORKSPACE_DUTCH }}
SOURCE_WORKSPACE_SPANISH: ${{ secrets.SOURCE_WORKSPACE_SPANISH }}
SOURCE_WORKSPACE_MALAGASY: ${{ secrets.SOURCE_WORKSPACE_MALAGASY }}
SOURCE_WORKSPACE_GERMAN: ${{ secrets.SOURCE_WORKSPACE_GERMAN }}
SOURCE_WORKSPACE_SWAHILI: ${{ secrets.SOURCE_WORKSPACE_SWAHILI }}
SOURCE_WORKSPACE_FILIPINO: ${{ secrets.SOURCE_WORKSPACE_FILIPINO }}
SOURCE_WORKSPACE_ARABIC: ${{ secrets.SOURCE_WORKSPACE_ARABIC }}
SOURCE_WORKSPACE_TAMIL: ${{ secrets.SOURCE_WORKSPACE_TAMIL }}
SOURCE_WORKSPACE_CZECH: ${{ secrets.SOURCE_WORKSPACE_CZECH }}
SOURCE_WORKSPACE_HUNGARIAN: ${{ secrets.SOURCE_WORKSPACE_HUNGARIAN }}
SOURCE_WORKSPACE_RUSSIAN: ${{ secrets.SOURCE_WORKSPACE_RUSSIAN }}
SOURCE_WORKSPACE_GREEK: ${{ secrets.SOURCE_WORKSPACE_GREEK }}
run: python main.py