Skip to content

Commit

Permalink
Use actions/setup-python V4 (#7073)
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <hkawamura0130@gmail.com>

Signed-off-by: harupy <hkawamura0130@gmail.com>
  • Loading branch information
harupy committed Oct 17, 2022
1 parent 8773d13 commit 5d15199
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-python/action.yml
Expand Up @@ -36,6 +36,6 @@ runs:
exit 1
fi
echo "version=$python_version" >> $GITHUB_OUTPUT
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ steps.get-python-version.outputs.version }}
8 changes: 2 additions & 6 deletions .github/workflows/autoformat.yml
Expand Up @@ -56,9 +56,7 @@ jobs:
ui_changed: ${{ steps.check-diff.outputs.ui_changed }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.7'
- uses: ./.github/actions/setup-python
- run: |
pip install requests
- name: Check diff
Expand Down Expand Up @@ -118,9 +116,7 @@ jobs:
with:
repository: ${{ needs.check-comment.outputs.repository }}
ref: ${{ needs.check-comment.outputs.ref }}
- uses: actions/setup-python@v3
with:
python-version: '3.7'
- uses: ./.github/actions/setup-python
- name: Install dependencies
run: |
pip install -r requirements/lint-requirements.txt
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cross-version-tests.yml
Expand Up @@ -49,9 +49,7 @@ jobs:
submodules: recursive
repository: ${{ github.event.inputs.repository }}
ref: ${{ github.event.inputs.ref }}
- uses: actions/setup-python@v3
with:
python-version: "3.7"
- uses: ./.github/actions/setup-python
- name: Install dependencies
run: |
pip install -r dev/requirements.txt
Expand Down

0 comments on commit 5d15199

Please sign in to comment.