Skip to content

Commit 75008a6

Browse files
committed
added run
1 parent 0b74dfa commit 75008a6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/run.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run on Push to Master
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.9"
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -e .
24+
pip install torch --index-url https://download.pytorch.org/whl/cpu
25+
26+
- name: Run a script
27+
run: |
28+
python -c "import malaya; model = malaya.jawi.huggingface(); model.generate(['helo'], to_lang = 'jawi')"

0 commit comments

Comments
 (0)