Use test script everywhere in the pipeline. (#130)
This commit is contained in:
parent
7aa1587b2b
commit
e109106af9
2
.envrc
2
.envrc
|
@ -22,7 +22,7 @@ if command -v guix; then
|
|||
git-cal --author="$(git config user.name)"
|
||||
|
||||
run-tests () {
|
||||
run_pipeline_tests
|
||||
run_pipeline_tests.sh
|
||||
}
|
||||
export_function run-tests
|
||||
cat << EOF
|
||||
|
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: scripts/install_github_actions_dev_dependencies.sh
|
||||
- name: Run tests in dev env
|
||||
run: run_pipeline_tests.sh
|
||||
run: scripts/run_pipeline_tests.sh
|
||||
|
||||
run-tests-preprod:
|
||||
# The type of runner that the job will run on
|
||||
|
|
|
@ -360,10 +360,8 @@ simplify testing of asynchronous tornado applications.")
|
|||
(replace 'check
|
||||
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "python" "-m" "pytest"
|
||||
;; This test fails because of the unvendoring
|
||||
;; of toml from dynaconf.
|
||||
"-k" "not test_get_settings_failure_invalid_toml"))))
|
||||
(setenv "POETRY_VIRTUALENVS_CREATE" "false")
|
||||
(invoke "./scripts/run_pipeline_tests.sh"))))
|
||||
(add-before 'sanity-check 'set-dummy-config
|
||||
(lambda _
|
||||
;; This is needed to prevent the tool from
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
export MOBILIZON_RESHARE_LOG_DIR="/tmp"
|
||||
export MOBILIZON_RESHARE_LOCAL_STATE_DIR="/tmp"
|
||||
export SECRETS_FOR_DYNACONF="$(pwd)/.secrets.toml"
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
poetry run pytest -m "not timezone_sensitive"
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
poetry run pytest -m "not timezone_sensitive"
|
||||
|
|
Loading…
Reference in New Issue