Skip to content

Commit

Permalink
Switch CI/CD to uv
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Mueller <[email protected]>
  • Loading branch information
johannes-mueller committed Jan 16, 2025
1 parent 4eb332d commit a1aa2c8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- master
- develop
- ci-debug
schedule:
- cron: "0 12 * * 0"

Expand All @@ -21,16 +22,19 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.12
- name: Set up Python
run: uv python install
- name: Install python essentials
run: uv pip install -U setuptools setuptools_scm wheel
- name: Install pandoc
run: sudo apt-get install pandoc
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools setuptools_scm wheel
pip install -e .[all,docs]
pip install -e ./tools/odbclient
sudo apt-get install pandoc
uv pip install ".[all,docs]"
uv pip install "./tools/odbclient"
- name: Build docs
run: sphinx-build -b html docs _build/html
17 changes: 9 additions & 8 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,23 @@ jobs:
only-minimal: true
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python
run: uv python install
- name: Install python essentials
run: |
python -m pip install --upgrade pip
pip install -U setuptools setuptools_scm wheel
run: uv pip install -U setuptools setuptools_scm wheel pytest-xdist
- name: Install dependencies complete
if: matrix.only-minimal != true
run: pip install -e .[all,testing]
run: uv pip install -e .[all,testing]
- name: Install dependencies minimal
if: matrix.only-minimal == true
run: pip install -e .[testing]
run: uv pip install -e .[testing]
- name: Unit tests
run: pytest
run: pytest -n auto
- name: Notebook flow tests
if: matrix.only-minimal != true
uses: coactions/setup-xvfb@v1
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/wheelbuild-benchmark-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ on:
jobs:
build_wheels:
name: Build wheels on for various systems
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] #, windows-latest]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -46,14 +43,16 @@ jobs:
with:
name: wheel
path: dist/
- uses: actions/setup-python@v4
name: Install Python
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.12'
- name: Set up Python
run: uv python install
- name: Install wheel
run: pip install $(ls -1 dist/*.whl)
run: uv pip install $(ls -1 dist/*.whl)
- name: Install pytest
run: pip install pytest pytest-cov
run: uv pip install pytest pytest-cov
- name: Generate test signal
run: python benchmarks/generate_time_signal.py
- name: Run benchmarks
Expand Down

0 comments on commit a1aa2c8

Please sign in to comment.