Skip to content

Commit

Permalink
Update GHA due to node16 deprecation (#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotare authored Oct 11, 2024
1 parent 476850e commit 4be81f4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"
- name: Restore venv
Expand All @@ -69,7 +69,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.12.5"
- name: Restore venv
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"
- name: Restore venv
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.12.5"
cache: true
Expand All @@ -183,7 +183,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"
- name: Restore venv
Expand All @@ -206,7 +206,7 @@ jobs:
run: source .venv/bin/activate && make -C nucliadb_sidecar test-cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./nucliadb_sidecar/coverage.xml
flags: nucliadb_sidecar
Expand All @@ -223,7 +223,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"
- name: Restore venv
Expand All @@ -249,7 +249,7 @@ jobs:
run: source .venv/bin/activate && make -C nucliadb test-cov-search

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./nucliadb/coverage.xml
flags: nucliadb-search
Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"

Expand All @@ -300,7 +300,7 @@ jobs:

- name: Run NucliaDB tests
# These tests can be flaky, let's retry them...
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
env:
TESTING_MAINDB_DRIVERS: ${{ matrix.maindb_driver }}
with:
Expand All @@ -310,7 +310,7 @@ jobs:
command: source .venv/bin/activate && make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3 -n 4" || make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3 --lf"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./nucliadb/coverage.xml
flags: nucliadb
Expand Down Expand Up @@ -338,7 +338,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"

Expand All @@ -353,7 +353,7 @@ jobs:
run: source .venv/bin/activate && make -C nucliadb test-cov-${{ matrix.component }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./nucliadb/coverage.xml
flags: nucliadb-${{ matrix.component }}
Expand Down Expand Up @@ -382,7 +382,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"

Expand All @@ -397,7 +397,7 @@ jobs:
run: source .venv/bin/activate && make -C ${{ matrix.package }} test-cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./${{ matrix.package }}/coverage.xml
flags: ${{ matrix.package }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
kubectl -n nucliadb wait --timeout=1m --for=condition=Ready pod -l statefulset.kubernetes.io/pod-name=nucliadb-1
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.12.5
cache: "pip"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nucliadb_node_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"
architecture: ${{ matrix.python-architecture || 'x64' }}
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12.5"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/public_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.12.5"
cache: "true"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12.5

Expand Down

0 comments on commit 4be81f4

Please sign in to comment.