Skip to content

Commit 6593c25

Browse files
qinyiyanrecml authors
authored andcommitted
Add a workflow action to run the unit tests and a requirements.txt
PiperOrigin-RevId: 748454509
1 parent e732e34 commit 6593c25

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
pull_request:
7+
branches: [ "main", "master" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
run_tests:
12+
name: Run Tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
- name: Install Dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install -r requirements.txt # If you have a requirements.txt file
21+
- name: Run Pytest
22+
run: |
23+
export KERAS_BACKEND=jax
24+
pytest -v

recml/requirements.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
jax>=0.4.30
2+
jaxlib>=0.4.30
3+
numpy
4+
pylint
5+
pytest
6+
pyink
7+
pre-commit
8+
clu
9+
jaxtyping
10+
tensorflow
11+
keras
12+
fiddle
13+
tensorflow_datasets
14+
absl-py
15+
keras_hub
16+
torch
17+
einops

0 commit comments

Comments
 (0)