Skip to content

Adding HYDRAGNN_MASTER_PORT #1697

Adding HYDRAGNN_MASTER_PORT

Adding HYDRAGNN_MASTER_PORT #1697

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 3 * * 1'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.9", "3.11"]
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Checkout GCNN
uses: actions/checkout@v2.2.0
- name: Install MPI
run: |
sudo apt-get update
sudo apt-get install -y libopenmpi-dev
sudo apt-get clean
- name: Cache pip
uses: actions/cache@v2
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('requirements-torch.txt') }}-${{ hashFiles('requirements-pyg.txt') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade -r requirements.txt -r requirements-dev.txt
python -m pip install --upgrade -r requirements-torch.txt --index-url https://download.pytorch.org/whl/cpu
python -m pip install --upgrade -r requirements-pyg.txt --find-links https://data.pyg.org/whl/torch-2.0.1+cpu.html
- name: Format black
run: |
black .
git diff --exit-code
- name: Run pytest
run: |
# FIXME: install
export PYTHONPATH=$PYTHONPATH:~/HydraGNN
pip list
python -m pytest -rfEP -W error -W ignore::DeprecationWarning -W ignore::UserWarning --tb=native
mpirun -n 2 --oversubscribe python -m pytest -rfEP -W error -W ignore::DeprecationWarning -W ignore::UserWarning --tb=native --with-mpi