Skip to content
Merged
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
13 changes: 8 additions & 5 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python-version: "3.13"
- os: ubuntu-latest
python-version: "3.14"
- os: macos-14
- os: macos-26
python-version: "3.12"
- os: windows-latest
python-version: "3.12"
Expand All @@ -51,10 +51,13 @@ jobs:
uses: actions/checkout@v4

- name: Install OS specific dependencies
if: matrix.os == 'macos-14'
run: |
brew update
brew install libomp
if: matrix.os == 'macos-26'
# Skip `brew update` and dependent upgrades: they pull formula versions
# newer than the runner image ships, which then build from source.
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
run: brew install libomp

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/rust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-14
- macos-26
- windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install OS specific dependencies
if: matrix.os == 'macos-14'
run: |
brew update
brew install libomp
if: matrix.os == 'macos-26'
# Skip `brew update` and dependent upgrades: they pull formula versions
# newer than the runner image ships, which then build from source.
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
run: brew install libomp

- name: Cache Cargo build
uses: actions/cache@v4
Expand Down
9 changes: 7 additions & 2 deletions tests/profiler/test_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,22 @@ def create_time(self):
assert len(previous) == 2


# Polls straddling an operator boundary are discarded, and a poll can take tens
# of milliseconds on loaded CI runners, so each window spans many intervals.
OP_SECONDS = .5


class BusyOp(SameLabelOp):
def process(self, mode, inputs):
end = perf_counter() + .12
end = perf_counter() + OP_SECONDS
while perf_counter() < end:
sum(range(1000))
return 1


class IdleOp(SameLabelOp):
def process(self, mode, inputs):
sleep(.12)
sleep(OP_SECONDS)
return 1


Expand Down
Loading