-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.28 KB
/
ci.yml
File metadata and controls
48 lines (46 loc) · 1.28 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
41
42
43
44
45
46
47
48
name: ci
on: [ push, pull_request ]
jobs:
tests:
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v3
with:
key: ${{ runner.os }}-uv-${{ hashFiles('**/requirements-dev.txt') }}
path: |
~/.cache/uv
~/.cache/pip
venv
- name: Install UV
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Setup virtual environment
run: uv venv -p python3 venv
- name: Install dependencies
run: |
source venv/bin/activate
uv pip install --upgrade -r requirements-dev.txt
uv pip install -e .
- name: Build Cython extensions
run: |
source venv/bin/activate
make clean build USE_CYTHON=1
- name: Run lint and tests
run: |
source venv/bin/activate
make ci
- name: Run benchmarks
run: |
source venv/bin/activate
pytest benchmark/test_pybmoore.py