-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.11 KB
/
tests.yml
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
41
42
43
44
45
46
47
name: 'Manager and Agent Tests'
on:
push:
branches: ['main']
paths-ignore:
- 'docs/**'
pull_request:
branches: ['main']
paths-ignore:
- 'docs/**'
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 360
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: '0.4.26'
enable-cache: true
cache-dependency-glob: 'uv.lock'
prune-cache: ${{ env.ACT != 'true' }}
- name: Cache UV python installs
uses: actions/cache@v4
if: env.ACT == 'true'
with:
path: ~/.local/share/uv/python
key: ${{ runner.os }}-uv-python-${{ hashFiles('.python-version', 'pyproject.toml') }}
- name: Install dependencies
run: uv run poe sync
- name: Run tests with coverage
run: uv run poe coverage
- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v5
if: env.ACT != 'true'
with:
token: ${{ secrets.CODECOV_TOKEN }}