This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
Update README.md #484
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [3.7, 3.8] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: ${{ matrix.version }} | |
conda-channels: anaconda | |
- run: conda --version | |
- run: which python | |
- name: install conda dependenies | |
run: conda install scipy mpi4py h5py | |
- name: install torch | |
env: | |
TORCH: "1.8.0" | |
TORCH_VISION: "0.9.0" | |
run: pip install torch==${TORCH}+cpu torchvision==${TORCH_VISION}+cpu -f https://download.pytorch.org/whl/torch_stable.html | |
- name: install torch geometric | |
env: | |
TORCH_GEO: "1.8.0" | |
run: | | |
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html | |
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html | |
pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html | |
pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-${TORCH_GEO}+cpu.html | |
pip install torch-geometric | |
- name: Install the package | |
run: pip install .[test] | |
env: | |
CONDA_PREFIX: /usr/share/miniconda | |
- name: Test with pytest | |
env: | |
CONDA_PREFIX: /usr/share/miniconda | |
run: | | |
pytest --cov-config setup.cfg | |
- name: Coveralls | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
COVERALLS_FLAG_NAME: python-${{ matrix.version }} | |
run: | | |
coveralls --service=github | |