PNA Eq #1820
Workflow file for this run
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: 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') }}-${{ hashFiles('requirements-deepspeed.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 | |
python -m pip install --upgrade -r requirements-deepspeed.txt | |
- 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 |