Skip to content

Commit d37fdd6

Browse files
Switch CI/CD to uv
Signed-off-by: Johannes Mueller <[email protected]>
1 parent 4eb332d commit d37fdd6

File tree

3 files changed

+28
-24
lines changed

3 files changed

+28
-24
lines changed

Diff for: .github/workflows/docs.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches:
77
- master
88
- develop
9+
- ci-debug
910
schedule:
1011
- cron: "0 12 * * 0"
1112

@@ -21,16 +22,19 @@ jobs:
2122

2223
steps:
2324
- uses: actions/checkout@v4
24-
- name: Set up Python 3.12
25-
uses: actions/setup-python@v5
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v5
2627
with:
2728
python-version: 3.12
29+
- name: Set up Python
30+
run: uv python install
31+
- name: Install python essentials
32+
run: uv pip install -U setuptools setuptools_scm wheel
33+
- name: Install pandoc
34+
run: sudo apt-get install pandoc
2835
- name: Install dependencies
2936
run: |
30-
python -m pip install --upgrade pip
31-
pip install -U setuptools setuptools_scm wheel
32-
pip install -e .[all,docs]
33-
pip install -e ./tools/odbclient
34-
sudo apt-get install pandoc
37+
uv pip install ".[all,docs]"
38+
uv pip install "./tools/odbclient"
3539
- name: Build docs
3640
run: sphinx-build -b html docs _build/html

Diff for: .github/workflows/pytest.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,23 @@ jobs:
2626
only-minimal: true
2727
steps:
2828
- uses: actions/checkout@v4
29-
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v5
29+
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@v5
3132
with:
3233
python-version: ${{ matrix.python-version }}
34+
- name: Set up Python
35+
run: uv python install
3336
- name: Install python essentials
34-
run: |
35-
python -m pip install --upgrade pip
36-
pip install -U setuptools setuptools_scm wheel
37+
run: uv pip install -U setuptools setuptools_scm wheel pytest-xdist
3738
- name: Install dependencies complete
3839
if: matrix.only-minimal != true
39-
run: pip install -e .[all,testing]
40+
run: uv pip install -e .[all,testing]
4041
- name: Install dependencies minimal
4142
if: matrix.only-minimal == true
42-
run: pip install -e .[testing]
43+
run: uv pip install -e .[testing]
4344
- name: Unit tests
44-
run: pytest
45+
run: pytest -n auto
4546
- name: Notebook flow tests
4647
if: matrix.only-minimal != true
4748
uses: coactions/setup-xvfb@v1

Diff for: .github/workflows/wheelbuild-benchmark-test.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ on:
1010
jobs:
1111
build_wheels:
1212
name: Build wheels on for various systems
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
os: [ubuntu-latest] #, windows-latest]
13+
runs-on: ubuntu-latest
1714

1815
steps:
1916
- uses: actions/checkout@v3
@@ -46,15 +43,17 @@ jobs:
4643
with:
4744
name: wheel
4845
path: dist/
49-
- uses: actions/setup-python@v4
50-
name: Install Python
46+
- name: Install uv
47+
uses: astral-sh/setup-uv@v5
5148
with:
5249
python-version: '3.12'
50+
- name: Set up Python
51+
run: uv python install
5352
- name: Install wheel
54-
run: pip install $(ls -1 dist/*.whl)
53+
run: uv pip install $(ls -1 dist/*.whl)
5554
- name: Install pytest
56-
run: pip install pytest pytest-cov
55+
run: uv pip install pytest pytest-cov
5756
- name: Generate test signal
58-
run: python benchmarks/generate_time_signal.py
57+
run: uv run benchmarks/generate_time_signal.py
5958
- name: Run benchmarks
6059
run: pytest --no-cov -rP benchmarks

0 commit comments

Comments
 (0)