Skip to content

Commit

Permalink
Separate daemon nightly test and pytest nightly test
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Jan 15, 2025
1 parent c39d8c4 commit 68cd23a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/daemon_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -ev

# Make sure the folder containing the workchains is in the python path before the daemon is started
SYSTEM_TESTS="${GITHUB_WORKSPACE}/.github/system_tests"
MODULE_POLISH="${GITHUB_WORKSPACE}/.molecule/default/files/polish"

export PYTHONPATH="${PYTHONPATH}:${SYSTEM_TESTS}:${MODULE_POLISH}"

verdi daemon start 4
verdi -p test_aiida run ${SYSTEM_TESTS}/test_daemon.py
verdi -p test_aiida run ${SYSTEM_TESTS}/test_containerized_code.py
bash ${SYSTEM_TESTS}/test_polish_workchains.sh
verdi daemon stop
3 changes: 0 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ jobs:
# NOTE: virtual env in .venv created by uv in previous step
run: source .venv/bin/activate && .github/workflows/setup.sh

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Run tests
id: tests
run: source .venv/bin/activate && .github/workflows/tests_nightly.sh
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/tests_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,4 @@ MODULE_POLISH="${GITHUB_WORKSPACE}/.molecule/default/files/polish"

export PYTHONPATH="${PYTHONPATH}:${SYSTEM_TESTS}:${MODULE_POLISH}"

verdi daemon start 4
# verdi -p test_aiida run ${SYSTEM_TESTS}/test_daemon.py
verdi -p test_aiida run ${SYSTEM_TESTS}/test_containerized_code.py
# bash ${SYSTEM_TESTS}/test_polish_workchains.sh
# verdi daemon stop

# AIIDA_TEST_PROFILE=test_aiida pytest --db-backend psql -m nightly tests/
AIIDA_TEST_PROFILE=test_aiida pytest --db-backend psql -m nightly tests/

0 comments on commit 68cd23a

Please sign in to comment.