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 1e45c6a
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on: [push, pull_request]

jobs:


fast-tests:

runs-on: ubuntu-latest
Expand All @@ -24,16 +25,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 +54,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 +65,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 +96,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 1e45c6a

Please sign in to comment.