Skip to content

Remove ipu

Remove ipu #2208

Workflow file for this run

name: test
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches:
- "*"
- "!gh-pages"
schedule:
- cron: "0 4 * * *"
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.10"
pytorch-version: "2.0"
- python-version: "3.11"
pytorch-version: "2.2"
- python-version: "3.12"
pytorch-version: "2.4"
runs-on: "ubuntu-latest"
timeout-minutes: 30
defaults:
run:
shell: bash -l {0}
name: |
regular_env -
python=${{ matrix.python-version }} -
pytorch=${{ matrix.pytorch-version }}
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Setup mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: env.yml
environment-name: graphium
cache-environment: true
cache-downloads: true
create-args: >-
python=${{ matrix.python-version }}
pytorch=${{ matrix.pytorch-version }}
- name: Install library
run: python -m pip install --no-deps -e . # `-e` required for correct `coverage` run.
- name: Install test dependencies
run: micromamba install -c conda-forge pytdc # Required to run the `test_finetuning.py`
- name: Install C++ library
run: cd graphium/graphium_cpp && git clone https://github.com/pybind/pybind11.git && export PYTHONPATH=$PYTHONPATH:./pybind11 && python -m pip install . && cd ../..
- name: Test CLI
run: graphium --help
- name: Test building the doc
run: mkdocs build
- name: Codecov Upload
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: false
env_vars: ${{ matrix.python-version }},${{ matrix.pytorch-version }}