Skip to content

Commit b2f5087

Browse files
WIP add CI
1 parent e3441c3 commit b2f5087

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
6+
# Cancel any ongoing run of this workflow on the same PR or ref
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v6
18+
- name: Run pre-commit
19+
run: uv run pre-commit
20+
tests:
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
python-version: ['3.11', '3.12', '3.13']
25+
os: ['ubuntu-latest', 'windows-latest', 'macos-13', 'macos-latest']
26+
runs-on: ${{ matrix.os }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v6
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Set up Python
34+
run: uv python install
35+
- name: Install Miniforge
36+
uses: conda-incubator/setup-miniconda@v3
37+
with:
38+
auto-update-conda: true
39+
miniforge-version: latest
40+
- name: Install khiops
41+
run: conda install --quiet --yes --name test khiops-core=11.0.0b.0
42+
- name: Run tests
43+
run: conda run --name test uv run pytest src/tests

0 commit comments

Comments
 (0)