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