Skip to content

Commit 483e736

Browse files
author
Mauko Quiroga
committed
Separate test steps in circle
1 parent eef7022 commit 483e736

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

.circleci/config.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
name: Install dependencies
2222
command: |
2323
make install
24+
make clean
2425
# pip install --editable git+https://github.com/openfisca/country-template.git@BRANCH_NAME#egg=OpenFisca-Country-Template # use a specific branch of OpenFisca-Country-Template
2526
# pip install --editable git+https://github.com/openfisca/extension-template.git@BRANCH_NAME#egg=OpenFisca-Extension-Template # use a specific branch of OpenFisca-Extension-Template
2627
@@ -30,8 +31,20 @@ jobs:
3031
- /tmp/venv/openfisca_core
3132

3233
- run:
33-
name: Run Core tests
34-
command: make test pytest_args="--exitfirst"
34+
name: Run linters
35+
command: make lint
36+
37+
- run:
38+
name: Run openfisca-core tests
39+
command: make test-core pytest_args="--exitfirst"
40+
41+
- run:
42+
name: Run country-template tests
43+
command: make test-country pytest_args="--exitfirst"
44+
45+
- run:
46+
name: Run extension-template tests
47+
command: make test-extension pytest_args="--exitfirst"
3548

3649
- run:
3750
name: Check NumPy typing against latest 3 minor versions
@@ -42,12 +55,6 @@ jobs:
4255
paths:
4356
- .coverage
4457

45-
- run:
46-
name: Run Country Template tests
47-
command: |
48-
COUNTRY_TEMPLATE_PATH=`python -c "import openfisca_country_template; print(openfisca_country_template.CountryTaxBenefitSystem().get_package_metadata()['location'])"`
49-
openfisca test $COUNTRY_TEMPLATE_PATH/openfisca_country_template/tests/
50-
5158
test_docs:
5259
docker:
5360
- image: python:3.7

openfisca_make/lint.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Lint the codebase.
2+
lint: check-syntax-errors check-style check-types
3+
14
## Compile python files to check for syntax errors.
25
check-syntax-errors: .
36
@$(call help,$@:)

0 commit comments

Comments
 (0)