diff --git a/.github/workflows/dependency-testing.yaml b/.github/workflows/dependency-testing.yaml index e8714603e..61bea4997 100644 --- a/.github/workflows/dependency-testing.yaml +++ b/.github/workflows/dependency-testing.yaml @@ -38,10 +38,14 @@ 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'] @@ -49,6 +53,7 @@ jobs: - uses: actions/checkout@v4 - name: Free Disk Space + if: runner.os == 'Linux' run: ./disk_clean.sh - name: Set up Python ${{ matrix.python-version }} @@ -56,19 +61,20 @@ jobs: 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: | diff --git a/tests/test_unit_tests.py b/tests/test_unit_tests.py index ffb3687a8..c2e132fa2 100644 --- a/tests/test_unit_tests.py +++ b/tests/test_unit_tests.py @@ -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