Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more tests
Browse files Browse the repository at this point in the history
stes committed Dec 16, 2024
1 parent 80f1ea9 commit cb8b5da
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -19,10 +19,17 @@ jobs:
# as well as selected previous versions on
# https://pytorch.org/get-started/previous-versions/
torch-version: ["2.2.2", "2.4.0"]
sklearn-version: ["latest"]
include:
- os: windows-latest
torch-version: 2.4.0
python-version: "3.10"
sklearn-version: "latest"
include:
- os: ubuntu-latest
torch-version: 2.4.0
python-version: "3.10"
sklearn-version: "legacy"

runs-on: ${{ matrix.os }}

@@ -32,7 +39,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-os_${{ runner.os }}-python_${{ matrix.python-version }}-torch_${{ matrix.torch-version }}
key: pip-os_${{ runner.os }}-python_${{ matrix.python-version }}-torch_${{ matrix.torch-version }}-sklearn_${{ matrix.sklearn-version }}

- name: Checkout code
uses: actions/checkout@v2
@@ -48,6 +55,11 @@ jobs:
python -m pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
pip install '.[dev,datasets,integrations]'
- name: Check sklearn legacy version
if: matrix.sklearn-version == 'legacy'
run: |
pip install scikit-learn==1.4.2 '.[dev,datasets,integrations]'
- name: Run the formatter
run: |
make format

0 comments on commit cb8b5da

Please sign in to comment.