-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.18 KB
/
ci.yml
File metadata and controls
39 lines (32 loc) · 1.18 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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Cache native builds
uses: actions/cache@v5.0.5
with:
path: krum/native
key: native-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('krum/native/**/*.cpp', 'krum/native/**/*.cu', 'krum/native/**/*.hpp', 'uv.lock') }}
- name: Install dependencies
run: uv sync --extra dev
- name: Check imports (no deprecation warnings)
run: |
uv run python -W error::DeprecationWarning -W error::PendingDeprecationWarning -c "from krum import tools, experiments, aggregators, attacks"
uv run python -W error::DeprecationWarning -W error::PendingDeprecationWarning -c "import krum.tools, krum.experiments, krum.aggregators, krum.attacks"