Skip to content

add models_utils.py and fix come bugs with tensors and device in gnn_… #125

add models_utils.py and fix come bugs with tensors and device in gnn_…

add models_utils.py and fix come bugs with tensors and device in gnn_… #125

Workflow file for this run

name: CI
# Controls when the action will run.
on:
pull_request:
branches:
- main
- develop
push:
branches:
- develop
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential python3-dev
- name: Install dependencies part 1
run: |
pip install -r requirements1.txt
- name: Install dependencies part 2
run: |
pip install -r requirements2.txt
- name: Install dependencies part 3
run: |
pip install -r requirements3.txt --no-deps
- name: Set PYTHONPATH
run: |
echo "PYTHONPATH=$PYTHONPATH:$(pwd)/src" >> $GITHUB_ENV
- name: Run tests
run: |
python3 -m unittest -v -f tests/explainers_test.*