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

jobs:

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

fast-tests:

runs-on: ubuntu-latest
Expand All @@ -24,9 +31,9 @@ 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:

Expand All @@ -46,9 +53,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 Down Expand Up @@ -81,6 +88,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 12d3646

Please sign in to comment.