Skip to content

Commit 348b97e

Browse files
authored
Enable test suite (#3)
1 parent 8134ec9 commit 348b97e

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- precommit
2121
strategy:
2222
matrix:
23-
python-version: [ 3.11 ]
23+
python-version: [ 3.12 ]
2424
steps:
2525
- uses: actions/checkout@v3
2626
- name: Set up Python ${{ matrix.python-version }}
@@ -36,3 +36,30 @@ jobs:
3636
- name: Run lints
3737
run: |
3838
make lints
39+
40+
tests:
41+
runs-on: ubuntu-latest
42+
needs:
43+
- lints
44+
strategy:
45+
matrix:
46+
python-version: [ 3.12 ]
47+
steps:
48+
- uses: actions/checkout@v3
49+
- name: Set up Python ${{ matrix.python-version }}
50+
uses: actions/setup-python@v3
51+
with:
52+
python-version: ${{ matrix.python-version }}
53+
- uses: astral-sh/setup-uv@v5
54+
with:
55+
version: "latest"
56+
- name: Install dependencies
57+
run: |
58+
uv sync --dev
59+
- name: Run tests
60+
run: |
61+
make tests
62+
- name: Upload coverage reports to Codecov
63+
uses: codecov/codecov-action@v5
64+
env:
65+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

blaxbird/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""blaxbird: A high-level API for building and training Flax NNX models."""
22

3-
__version__ = "0.0.2"
3+
__version__ = "0.1.0"
44

55
from blaxbird._src.checkpointer import get_default_checkpointer
66
from blaxbird._src.trainer import train_fn

blaxbird/_src/test_blaxbird.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import chex
2+
3+
4+
def test_blaxbird():
5+
chex.assert_equal(1, 1)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)