Skip to content

Commit

Permalink
MNT(actions): update versions of checkout and setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
balbasty committed Apr 17, 2023
1 parent 8a91358 commit 9c18f60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/actions/publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ inputs.tag }}
- name: Setup Python ${{ inputs.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install dependencies for building package
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ inputs.tag }}
- name: Setup Python ${{ inputs.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Test with pytest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- python-version: "3.9"
pytorch-version: "1.11"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/test
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -65,7 +65,7 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/publish
with:
python-version: ${{ inputs.python-version }}
Expand All @@ -82,7 +82,7 @@ jobs:
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/publish
with:
python-version: ${{ inputs.python-version }}
Expand Down

0 comments on commit 9c18f60

Please sign in to comment.