Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/dependency-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,37 +38,43 @@ permissions:
jobs:
dependency-matrix:
name: Test Python ${{ matrix.python-version }} with ${{ matrix.deps-type }} dependencies
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
deps-type: ['max', 'default']

steps:
- uses: actions/checkout@v4

- name: Free Disk Space
if: runner.os == 'Linux'
run: ./disk_clean.sh

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install system dependencies
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential libomp-dev

- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: brew install libomp

- name: Install build tooling (Poetry and uv)
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 - --yes
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
pip install poetry uv

- name: Build wheel and sdist
run: |
Expand Down
4 changes: 1 addition & 3 deletions tests/test_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ def _find_test_files():
if file.startswith("test_") and file.endswith(".py"):
# Convert file path to module path
file_path = os.path.join(root, file)
module_path = os.path.relpath(file_path, "tests").replace("/", ".")[
:-3
] # remove .py
module_path = os.path.relpath(file_path, "tests").replace(os.sep, ".")[:-3] # remove .py
test_files.append(module_path)
return test_files

Expand Down
Loading