Skip to content

Commit

Permalink
added run
Browse files Browse the repository at this point in the history
  • Loading branch information
huseinzol05 committed Mar 27, 2024
1 parent 0b74dfa commit 75008a6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run on Push to Master

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Run a script
run: |
python -c "import malaya; model = malaya.jawi.huggingface(); model.generate(['helo'], to_lang = 'jawi')"

0 comments on commit 75008a6

Please sign in to comment.