Skip to content

Commit

Permalink
More sophisticate pytest running option.
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Jun 21, 2024
1 parent 12521bc commit 26a1fca
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ on: [push, pull_request]

jobs:

fast-tests:

fast-tests:
runs-on: ubuntu-latest
timeout-minutes: 10

services:
rabbitmq:
image: rabbitmq:3.8.14-management
ports:
- 5672:5672
- 15672:15672

steps:
- uses: actions/checkout@v4

Expand All @@ -24,16 +31,23 @@ jobs:
run: |
pip install .[dev]
- name: Pull the image and Run pytest
- name: Run pytest
run: |
pytest -v tests -m "not slow"
pytest -s tests -m "not slow"
slow-tests:

needs: [fast-tests]
runs-on: ubuntu-latest
timeout-minutes: 30

services:
rabbitmq:
image: rabbitmq:3.8.14-management
ports:
- 5672:5672
- 15672:15672

steps:
- uses: actions/checkout@v4

Expand All @@ -46,9 +60,9 @@ jobs:
run: |
pip install .[dev]
- name: Pull the image and Run pytest
- name: Run pytest
run: |
pytest -v tests -m "slow"
pytest -s tests -m "slow"
edge-aiida-core-tests:
# This is to test the plugin is compatible with the main branch of aiida-core
Expand All @@ -57,6 +71,13 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30

services:
rabbitmq:
image: rabbitmq:3.8.14-management
ports:
- 5672:5672
- 15672:15672

steps:
- uses: actions/checkout@v4

Expand All @@ -81,6 +102,6 @@ jobs:
exit 1
fi
- name: Pull the image and Run pytest
- name: Run pytest
run: |
pytest -v tests
pytest -s tests

0 comments on commit 26a1fca

Please sign in to comment.