Skip to content

Add benchmark script for efficiency #346

Add benchmark script for efficiency

Add benchmark script for efficiency #346

Workflow file for this run

name: Testing PyTorch 2.3
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
jobs:
pytest:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install PyTorch
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install torch==2.3.0 --extra-index-url https://download.pytorch.org/whl/cpu
python3 -m pip install --no-index pyg-lib==0.4.0 -f https://data.pyg.org/whl/torch-2.3.0+cpu.html
- name: Install main package
run: |
source .venv/bin/activate
pip install -e .[full,test]
- name: Run tests
run: |
source .venv/bin/activate
pytest --cov --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false