From 5d10aa581456ea213fef65cc7b87873d4e581a4a Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Mon, 26 Oct 2020 09:48:09 -0700 Subject: [PATCH] move conditions into individual commands --- .circleci/config.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 49f2efee..8fc62e96 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -38,6 +38,7 @@ commands: steps: - run: name: Tests - Pytest + when: always command: > poetry run pytest --junitxml=reports/pytest/results.xml @@ -46,6 +47,7 @@ commands: steps: - run: name: Tests - Behave + when: always command: > poetry run behave --no-skipped @@ -57,16 +59,19 @@ commands: steps: - run: name: Poetry Check + when: always command: | poetry --version poetry check - run: name: Black Code Formatter + when: always command: | poetry run black --version poetry run black --check --diff . - run: name: PyFlakes + when: always command: | poetry run pyflakes --version poetry run pyflakes jrnl features tests @@ -77,10 +82,8 @@ aliases: - checkout - get_poetry_deps - run: poetry install - - pytest: - when: always - - behave: - when: always + - pytest + - behave - store_test_results: path: reports