Skip to content

Commit e2ac0d1

Browse files
committed
Run tests on all supported Python versions
1 parent d0b3877 commit e2ac0d1

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.github/workflows/test.yaml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
1-
name: CI
2-
on: [workflow_dispatch, pull_request, push]
3-
permissions:
4-
contents: read
1+
name: Run tests on supported versions of Python
2+
3+
on:
4+
push:
5+
# branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
59

610
jobs:
7-
test:
11+
tests:
812
runs-on: ubuntu-latest
9-
steps: [uses: fastai/workflows/nbdev-ci@master]
13+
strategy:
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
16+
17+
steps:
18+
- uses: actions/checkout@v5
19+
20+
- name: Set up uv
21+
uses: astral-sh/setup-uv@v7
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies and run tests
26+
run: |
27+
uv sync --all-extras
28+
29+
- name: Run tests in uv virtual environment using nbdev
30+
run: |
31+
uv run nbdev_test

0 commit comments

Comments
 (0)