Skip to content

Commit

Permalink
ci: stateful tests are now a separate job
Browse files Browse the repository at this point in the history
Stateful testing will become very time consuming once all tests cases will be finished. Since we're are already very close to hitting the 6 hours job execution limit we split the tests into two to also obtain faster parallel execution and avoiding bottlenecks.
  • Loading branch information
AlbertoCentonze committed May 13, 2024
1 parent 8723eca commit 8ad21cf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
path: |
~/.vvm
key: compiler-cache
key: compiler-cache-${{ hashFiles('**/requirements.txt') }}

- name: Setup Python 3.10.4
uses: actions/setup-python@v2
Expand Down
29 changes: 26 additions & 3 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
boa-tests:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -16,7 +16,7 @@ jobs:
with:
path: |
~/.vvm
key: compiler-cache
key: compiler-cache-${{ hashFiles('**/requirements.txt') }}

- name: Setup Python 3.10.4
uses: actions/setup-python@v2
Expand All @@ -27,4 +27,27 @@ jobs:
run: pip install -r requirements.txt

- name: Run Tests
run: python -m pytest tests/unitary -n auto
run: python -m pytest tests/unitary -n auto -k 'not pool/stateful'

stateful-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache Compiler Installations
uses: actions/cache@v2
with:
path: |
~/.vvm
key: compiler-cache-${{ hashFiles('**/requirements.txt') }}

- name: Setup Python 3.10.4
uses: actions/setup-python@v2
with:
python-version: 3.10.4

- name: Install Requirements
run: pip install -r requirements.txt

- name: Run Stateful Tests
run: python -m pytest tests/unitary/pool/stateful -n auto

0 comments on commit 8ad21cf

Please sign in to comment.