Skip to content

Commit 039e2f9

Browse files
authored
ci: Add float64 tests (#497)
1 parent 8ed91c7 commit 039e2f9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,26 @@ jobs:
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}
6060

61+
tests-float64:
62+
name: Run tests on float64 dtype
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v4
66+
- name: Set up uv
67+
uses: astral-sh/setup-uv@v5
68+
with:
69+
python-version: ${{ env.PYTHON_VERSION }}
70+
- name: Install default (with full options) and test dependencies
71+
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e '.[full]' --group test
72+
- name: Run unit and doc tests with coverage report
73+
run: uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml
74+
env:
75+
PYTEST_TORCH_DTYPE: float64
76+
- name: Upload results to Codecov
77+
uses: codecov/codecov-action@v4
78+
with:
79+
token: ${{ secrets.CODECOV_TOKEN }}
80+
6181
build-doc:
6282
name: Build doc
6383
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)