Skip to content

Commit 2b78391

Browse files
authored
Updated cadence of scheduled E2E tests and clear poetry cache during them (#105)
* Updated cadence of scheduled E2E tests * Added disk usage checks to PR E2E tests * Added Poetry cache clearing to PR E2E tests * Removed redudant poetry installations from PR E2E tests * Added to df commands in PR E2E tests * Updated scheduled E2E tests with cache clearing * Removed max parallel from E2E tests
1 parent f8b0fc3 commit 2b78391

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/pr-e2e-tests.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
e2e-tests:
1515
runs-on: ubuntu-latest
1616
strategy:
17-
max-parallel: 1
1817
matrix:
1918
python-version: ['3.8', '3.12']
2019
neo4j-version:
@@ -74,11 +73,12 @@ jobs:
7473
key: ${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
7574
- name: Install dependencies
7675
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
77-
run: poetry install --no-interaction --no-root
78-
- name: Install root project
79-
run: poetry install --no-interaction
80-
- name: Install dependencies
81-
run: poetry install --with dev
76+
run: poetry install --no-interaction --no-cache --with dev
77+
- name: Clear Poetry cache
78+
run: poetry cache clear --all .
79+
- name: Show disk usage after Poetry installation
80+
run: |
81+
df -h
8282
- name: Wait for Weaviate to start
8383
shell: bash
8484
run: |

.github/workflows/scheduled-e2e-tests.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Neo4j-GenAI Scheduled E2E Tests'
22

33
on:
44
schedule:
5-
- cron: '0 6,9,12,15,18 * * 1-5' # Runs every 3 hours daytime on working days
5+
- cron: '0 6 * * 1-5' # Runs at 6am on working days
66
push:
77
branches:
88
- main
@@ -11,7 +11,6 @@ jobs:
1111
e2e-tests:
1212
runs-on: ubuntu-latest
1313
strategy:
14-
max-parallel: 6
1514
matrix:
1615
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1716
neo4j-version:
@@ -72,11 +71,12 @@ jobs:
7271
key: ${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
7372
- name: Install dependencies
7473
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
75-
run: poetry install --no-interaction --no-root
76-
- name: Install root project
77-
run: poetry install --no-interaction
78-
- name: Install dependencies
79-
run: poetry install --with dev
74+
run: poetry install --no-interaction --no-cache --with dev
75+
- name: Clear Poetry cache
76+
run: poetry cache clear --all .
77+
- name: Show disk usage after Poetry installation
78+
run: |
79+
df -h
8080
- name: Wait for Weaviate to start
8181
shell: bash
8282
run: |

0 commit comments

Comments
 (0)