Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
tests:
name: ${{ matrix.deps }} / ${{ matrix.resolution }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- deps: core
resolution: locked
sync: uv sync --locked
pytest_args: tests -v
- deps: core
resolution: loose
sync: uv sync --upgrade
pytest_args: tests -v
- deps: full
resolution: locked
sync: uv sync --locked --all-extras
pytest_args: tests -v
- deps: full
resolution: loose
sync: uv sync --upgrade --all-extras
pytest_args: tests -v
steps:
- uses: actions/checkout@v6.0.2
- uses: astral-sh/setup-uv@v7.6.0
- name: Install dependencies
run: ${{ matrix.sync }}
- name: Run tests
run: uv run pytest ${{ matrix.pytest_args }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
[project.optional-dependencies]
inspect = ["inspect-ai>=0.3.160,<0.4.0"]
helm = [
"crfm-helm>=0.5.12",
"crfm-helm>=0.5.14",
"typer>=0.12,<1.0",
]
all = [
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading