-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: pre-commit ci workflow #3917
Changes from 1 commit
bce4400
bb626bf
1f69e06
7381751
0da38fc
a7206d8
7f5c649
ac6b001
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,17 @@ jobs: | |
lsblk -l | ||
echo "sda rotational = $(cat /sys/block/sda/queue/rotational)" | ||
echo "sdb rotational = $(cat /sys/block/sdb/queue/rotational)" | ||
- name: Create virtual environment | ||
run: python -m venv venv | ||
- name: Activate virtual environment | ||
run: | | ||
echo "Activating virtual environment" | ||
source venv/bin/activate | ||
python -m pip install --upgrade pip | ||
- name: Install dependencies | ||
run: | | ||
source venv/bin/activate | ||
pip install pre-commit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because among different There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I am testing this not 100% sure about this) |
||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pre-commit | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that you need to change the current Install dependencies step line 22 to run in virtual env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep yep, I was distracted with the gh runner 😛