Skip to content

Commit

Permalink
Make github action python env match that in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joeloskarsson committed Feb 1, 2024
1 parent 474bad9 commit b77d8cc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run pre-commit in blueprint
name: Run pre-commit job

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
- main

jobs:
blueprint-pre-commit:
pre-commit-job:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -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

0 comments on commit b77d8cc

Please sign in to comment.