Skip to content

Commit

Permalink
Fix nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Dec 5, 2024
1 parent 3bf2dbd commit 32f9229
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ jobs:
uses: ./.github/actions/install-aiida-core
with:
python-version: '3.11'
from-lock: 'true'

- name: Setup environment
run: .github/workflows/setup.sh
# NOTE: virtual env in .venv created by uv in previous step
run: source .venv/bin/activate && .github/workflows/setup.sh

- name: Run tests
id: tests
run: .github/workflows/tests_nightly.sh
run: source .venv/bin/activate && .github/workflows/tests_nightly.sh

- name: Slack notification
# Always run this step (otherwise it would be skipped if any of the previous steps fail) but only if the
Expand Down Expand Up @@ -118,18 +120,19 @@ jobs:
uses: ./.github/actions/install-aiida-core
with:
python-version: '3.11'
from-lock: 'true'

- name: Setup SSH on localhost
run: .github/workflows/setup_ssh.sh
run: source .venv/bin/activate && .github/workflows/setup_ssh.sh

- name: Suppress RabbitMQ version warning
run: verdi config set warnings.rabbitmq_version False
run: uv run verdi config set warnings.rabbitmq_version False

- name: Run tests
id: tests
env:
AIIDA_WARN_v3: 0
run: pytest -s --db-backend sqlite -m 'requires_rmq' tests/
run: uv run pytest -s --db-backend sqlite -m 'requires_rmq' tests/

- name: Slack notification
# Always run this step (otherwise it would be skipped if any of the previous steps fail) but only if the
Expand Down

0 comments on commit 32f9229

Please sign in to comment.