Use test script everywhere in the pipeline. (#130)

This commit is contained in:
Giacomo Leidi 2022-01-24 22:34:52 +01:00 committed by GitHub
parent 7aa1587b2b
commit e109106af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 7 deletions

2
.envrc
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -1 +1,5 @@
poetry run pytest -m "not timezone_sensitive"
#!/bin/sh
set -e
poetry run pytest -m "not timezone_sensitive"