Skip to content

Upstream nightly version CI #56

Upstream nightly version CI

Upstream nightly version CI #56

Workflow file for this run

name: Upstream nightly version CI
on:
schedule:
# weekly tests, Sundays at midnight
- cron: "0 0 * * 0"
workflow_dispatch:
concurrency:
# Specific group naming so CI is only cancelled
# within same PR or on merge to main
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
nightly_check:
name: Nightly check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-12, ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Build information
run: |
uname -a
df -h
ulimit -a
- name: Install environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: devtools/conda-envs/nightly.yaml
create-args: >-
python=${{ matrix.python-version }}
pydantic=2
- name: Install nightly pytorch-lightning
run: |
python -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
python -m pip install https://github.com/Lightning-AI/lightning/archive/refs/heads/master.zip -U
- name: Download DGL source
run: |
git clone --recurse-submodules https://github.com/dmlc/dgl.git
- name: Set up DGL
if: matrix.os == 'macOS-12'
run: |
# from https://docs.dgl.ai/en/latest/install/index.html#macos
cd dgl/
mkdir build && cd build
cmake -DUSE_OPENMP=off -DUSE_LIBXSMM=OFF ..
make -j4
cd ../..
- name: Set up DGL (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
# from https://docs.dgl.ai/en/latest/install/index.html#linux
cd dgl/
printf "yes\n" | bash script/build_dgl.sh -c
cd ..
- name: Install DGL Python bindings
run: |
cd dgl/python
python setup.py install
python setup.py build_ext --inplace
cd ../..
- uses: ./.github/actions/include-openeye
if: matrix.include-openeye == true
with:
openeye-license-text: ${{ secrets.OE_LICENSE }}
openeye-license-file: ${{ env.OE_LICENSE }}
- name: Check Python environment
run: |
pip list
- name: Import DGL
run: |
python -c "import dgl"
- name: Install package
run: |
python -m pip install . --no-deps
- name: Python information
run: |
which python
conda info
conda list
- name: Run tests
run: |
python -m pytest -n 4 -v --cov=openff/nagl --cov-config=setup.cfg --cov-append --cov-report=xml --color=yes openff/nagl/