moved run tests to script

This commit is contained in:
Simone Robutti 2022-01-20 11:58:44 +01:00
parent 994102c937
commit 7aa1587b2b
3 changed files with 3 additions and 2 deletions

2
.envrc
View File

@ -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 () {
poetry run pytest run_pipeline_tests
} }
export_function run-tests export_function run-tests
cat << EOF cat << EOF

View File

@ -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: poetry run pytest -m "not timezone_sensitive" run: 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

1
scripts/run_pipeline_tests.sh Executable file
View File

@ -0,0 +1 @@
poetry run pytest -m "not timezone_sensitive"