From a9ee2c2723ccb8ea90524d6ae93de893b0e51e14 Mon Sep 17 00:00:00 2001 From: "lev.telyatnikov" Date: Mon, 29 Apr 2024 17:44:48 -0400 Subject: [PATCH] updated test_tutorials action --- .github/workflows/test_tutorials.yml | 114 +-------------------------- pyproject.toml | 1 + 2 files changed, 4 insertions(+), 111 deletions(-) diff --git a/.github/workflows/test_tutorials.yml b/.github/workflows/test_tutorials.yml index a334634b..05b317ad 100644 --- a/.github/workflows/test_tutorials.yml +++ b/.github/workflows/test_tutorials.yml @@ -23,115 +23,7 @@ env: PYDEVD_DISABLE_FILE_VALIDATION: 1 jobs: - - simplicial-pytest: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - python-version: ["3.10", "3.11"] - torch-version: [2.0.1] - include: - - torch-version: 2.0.1 - test-group: [1, 2, 3, 4] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: "pyproject.toml" - - - name: Install PyTorch ${{ matrix.torch-version }}+cpu - run: | - pip install --upgrade pip setuptools wheel - pip install torch==${{ matrix.torch-version}} --extra-index-url https://download.pytorch.org/whl/cpu - pip install torch-scatter -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - pip install torch-sparse -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - pip install torch-cluster -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - - name: Install main package - run: | - pip install -e .[all] - - name: Run tests for tutorials on simplicial domain [pytest] [Group-${{ matrix.test-group}}] - run: | - pytest --splits 4 --group ${{ matrix.test-group}} test/tutorials/test_simplicial.py - - hypergraph-pytest: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - python-version: ["3.10", "3.11"] - torch-version: [2.0.1] - include: - - torch-version: 2.0.1 - test-group: [1, 2, 3] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: "pyproject.toml" - - - name: Install PyTorch ${{ matrix.torch-version }}+cpu - run: | - pip install --upgrade pip setuptools wheel - pip install torch==${{ matrix.torch-version}} --extra-index-url https://download.pytorch.org/whl/cpu - pip install torch-scatter -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - pip install torch-sparse -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - pip install torch-cluster -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - - name: Install main package - run: | - pip install -e .[all] - - name: Run tests for tutorials on hypergraph domain [pytest] [Group-${{ matrix.test-group}}] - run: | - pytest --splits 3 --group ${{ matrix.test-group}} test/tutorials/test_hypergraph.py - - cell-pytest: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - python-version: ["3.10", "3.11"] - torch-version: [2.0.1] - include: - - torch-version: 2.0.1 - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: "pyproject.toml" - - - name: Install PyTorch ${{ matrix.torch-version }}+cpu - run: | - pip install --upgrade pip setuptools wheel - pip install torch==${{ matrix.torch-version}} --extra-index-url https://download.pytorch.org/whl/cpu - pip install torch-scatter -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - pip install torch-sparse -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - pip install torch-cluster -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - - name: Install main package - run: | - pip install -e .[all] - - name: Run tests for tutorials on cell domains [pytest] - run: | - pytest test/tutorials/test_cell.py - - combinatorial-pytest: + test-all-tutorials-pytest: runs-on: ${{ matrix.os }} strategy: @@ -162,6 +54,6 @@ jobs: - name: Install main package run: | pip install -e .[all] - - name: Run tests for tutorials on combinatorial domains [pytest] + - name: Run tests for tutorials on all domains [pytest] run: | - pytest test/tutorials/test_tutorials.py \ No newline at end of file + pytest test/tutorials/test_tutorials.py diff --git a/pyproject.toml b/pyproject.toml index 6116cba1..1b9558d9 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,7 @@ test = [ ] [tool.ruff] +select = "challenge-icml-2024" target-version = "py310" extend-include = ["*.ipynb"]