-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (34 loc) · 1.15 KB
/
ci-test.yml
File metadata and controls
40 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI_tests
on:
pull_request:
branches: ['main']
jobs:
ci_test:
runs-on: ubuntu-latest
env:
IS_CI: true
OPENAI_API_KEY: "Fake key, but the var needs to be set or else Inspect will complain at import time"
HF_TOKEN: ${{ secrets.HF_TOKEN }}
steps:
- uses: actions/checkout@v4
# Set up Docker Buildx for caching
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Build the Docker image with layer caching
- name: Build main Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
tags: agent-baselines:latest
target: agent-baselines
cache-from: type=gha,scope=agent-baselines # Use GitHub Actions cache
cache-to: type=gha,mode=max,scope=agent-baselines
load: true # Make the image available for later steps
- name: Run tests
run: |
make test
- name: Smoke solvers (per-solver envs)
run: |
# Keep this small but meaningful: exercise two solvers with different inspect_ai versions.
make smoke-solvers-ci