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
20 changes: 12 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.12'
Expand All @@ -48,9 +50,10 @@ jobs:
- dev
- standard
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
os:
- linux
- win64
Expand All @@ -66,6 +69,10 @@ jobs:
install-mode: dev
python-version: "3.11"
mpi: "true"
exclude:
# ray has no Python 3.13 wheels for Windows
- os: win64
python-version: "3.13"
steps:
- if: matrix.install-mode == 'dev'
uses: actions/checkout@v4
Expand Down Expand Up @@ -97,7 +104,7 @@ jobs:
run: echo PYTEST_ADDOPTS="$PYTEST_ADDOPTS --cov --cov-report=xml" >> $GITHUB_ENV
- name: Run pytest
run: |
pip install pytest # ensure pytest is installed (should do nothing if already present from requirements-dev.txt)
pip install pytest
pytest --pyargs parameter_sweep
- name: Upload coverage report as job artifact
if: matrix.coverage
Expand All @@ -116,9 +123,7 @@ jobs:
src/parameter_sweep/tests/test*parameter_sweep.py \
src/parameter_sweep/loop_tool/tests/test*loop_tool.py \
--no-cov
# merge into single report
coverage combine
# convert to XML
coverage xml
- name: Upload coverage report as job artifact
if: matrix.mpi
Expand All @@ -133,8 +138,9 @@ jobs:
needs: [pytest]
runs-on: ubuntu-latest
steps:
# the checkout step is needed to have access to codecov.yml
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
pattern: coverage-report-*
Expand All @@ -144,8 +150,6 @@ jobs:
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
# downgrading after v0.7.0 broke tokenless upload
# see codecov/codecov-action#1487
version: v0.6.0

build-docs:
Expand All @@ -160,4 +164,4 @@ jobs:
with:
python-version: '3.11'
- run: pip install -r requirements-dev.txt
- run: make -C docs html
- run: make -C docs html
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ pytest --pyargs parameter_sweep

```sh
black .
```
```

## Known Limitations
- `ray` does not currently provide wheels for Windows + Python 3.13.
Use Python 3.12 on Windows if you need the `ray` extra.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ dependencies = [
]
[project.optional-dependencies]
ray = [
"ray",
"ray; sys_platform != 'win32' and python_version < '3.14'",
"ray; sys_platform == 'win32' and python_version < '3.13'",
]
mpi = [
"mpi4py",
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ sphinx-rtd-theme==2.0.0
astroid < 4

--editable .[testing,ray]
watertap @ git+https://github.com/watertap-org/watertap@main
watertap @ git+https://github.com/sufikaur/watertap@align-param-sweep-tag
Loading