Skip to content

Commit

Permalink
refactor: upgrade actions version (#3506)
Browse files Browse the repository at this point in the history
* upgrade actions version

* upgrade cache action too
  • Loading branch information
ZanSara authored Nov 2, 2022
1 parent bb1d998 commit b93bbb1
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/actions/python_cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ runs:
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.pythonVersion }}

- name: Cache
id: cache-python-env
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
# The cache will be rebuild every day and at every change of the dependency files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
needs: deploy-cloud-runner
runs-on: [self-hosted,cml]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: cml_run
env:
repo_token: ${{ secrets.HAYSTACK_BOT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: AWS Authentication
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Docker meta
id: meta
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/readme_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python 3.8.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8.10

Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
# Mypy can't run properly on 3.7 as it misses support for Literal types.
# FIXME once we drop support for 3.7, use the cache.
Expand Down Expand Up @@ -73,10 +73,10 @@ jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -301,7 +301,6 @@ jobs:
channel: '#haystack'
if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'


faiss-tests-linux:
needs:
- mypy
Expand All @@ -310,7 +309,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'topic:faiss') || !github.event.pull_request.draft

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -342,7 +341,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'topic:faiss') && contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft || !github.event.pull_request.draft

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -377,7 +376,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'topic:milvus') || !github.event.pull_request.draft

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -420,7 +419,7 @@ jobs:
# if: contains(github.event.pull_request.labels.*.name, 'topic:milvus') && contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft || !github.event.pull_request.draft

# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3

# - name: Setup Python
# uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -458,7 +457,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'topic:weaviate') || !github.event.pull_request.draft

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -498,7 +497,7 @@ jobs:
# if: contains(github.event.pull_request.labels.*.name, 'topic:weaviate') && contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft

# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3

# - name: Setup Python
# uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -532,7 +531,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'topic:pinecone') || !github.event.pull_request.draft

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -565,7 +564,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'topic:pinecone') && contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -605,7 +604,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -645,7 +644,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: ./.github/actions/python_cache/
Expand Down Expand Up @@ -741,7 +740,7 @@ jobs:
- "others"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand Down

0 comments on commit b93bbb1

Please sign in to comment.