Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit af46d57

Browse files
fix: use virtual environment to adopt PEP 668 (#67)
* use virtual environment * fix: FileNotFoundError of commit-check * fix: merge two step to one step
1 parent 037db85 commit af46d57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎action.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ inputs:
3636
runs:
3737
using: "composite"
3838
steps:
39-
- name: Install action dependencies
39+
- name: Install dependencies and run commit-check
4040
shell: bash
4141
run: |
4242
if [[ "$RUNNER_OS" == "Linux" ]]; then
4343
# https://github.com/pypa/setuptools/issues/3269
4444
export DEB_PYTHON_INSTALL_LAYOUT=deb
4545
fi
46+
python3 -m venv venv
47+
source venv/bin/activate
4648
python3 -m pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
47-
- name: Run commit-check
48-
shell: bash
49-
run: python3 ${{ github.action_path }}/main.py
49+
python3 "$GITHUB_ACTION_PATH/main.py"
5050
env:
5151
MESSAGE: ${{ inputs.message }}
5252
BRANCH: ${{ inputs.branch }}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /