name: Testing on: [push, pull_request] jobs: pytest: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest] python-version: [3.6] torch-version: [1.9.0, 1.10.0] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install PyTorch ${{ matrix.torch-version }} run: | pip install torch==${{ matrix.torch-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html - name: Install torch-scatter run: | pip install torch-scatter -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html - name: Install METIS if: ${{ runner.os != 'Windows' }} run: | bash .github/workflows/metis.sh - name: Install METIS on Windows if: ${{ runner.os == 'Windows' }} run: | bash .github/workflows/metis-${{ runner.os }}.sh - name: Install main package run: | pip install -e .[test] env: WITH_METIS: 1 - name: Run test-suite run: | python setup.py test - name: Generate coverage report if: success() run: | pip install coverage coverage xml - name: Upload coverage report to codecov uses: codecov/codecov-action@v1 if: success() with: file: coverage.xml