From b77d8ccb30ee4cc13e81cf3bd3961d780da32a46 Mon Sep 17 00:00:00 2001 From: joeloskarsson Date: Thu, 1 Feb 2024 17:03:38 +0100 Subject: [PATCH] Make github action python env match that in readme --- .github/workflows/pre-commit.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1a4fc983..a6ad84f1 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,4 +1,4 @@ -name: Run pre-commit in blueprint +name: Run pre-commit job on: push: @@ -9,7 +9,7 @@ on: - main jobs: - blueprint-pre-commit: + pre-commit-job: runs-on: ubuntu-latest defaults: run: @@ -19,10 +19,15 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.11.7 + python-version: 3.9 - name: Install pre-commit hooks run: | + pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 \ + --index-url https://download.pytorch.org/whl/cpu pip install -r requirements.txt + pip install pyg-lib==0.2.0 torch-scatter==2.1.1 torch-sparse==0.6.17 \ + torch-cluster==1.6.1 torch-geometric==2.3.1 \ + -f https://pytorch-geometric.com/whl/torch-2.0.1+cpu.html - name: Run pre-commit hooks run: | pre-commit run --all-files