Skip to content

Commit af46d57

Browse files
authored
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

+4-4
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)