Skip to content

Commit

Permalink
ci: fix yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Oct 15, 2024
1 parent 69d065e commit 17f94ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: make check-style

- name: Lint YAML tests
run: "${GITHUB_WORKSPACE}/.github/lint-files.sh 'tests/*.yaml' 'yamllint'"
run: make check-yaml

test-yaml:
runs-on: ubuntu-22.04
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ check-style:
isort --check `git ls-files | grep "\.py$$"`
black --check `git ls-files | grep "\.py$$"`

check-yaml:
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
yamllint `git ls-files | grep "\.yaml$$"`

test: clean check-syntax-errors check-style
openfisca test --country-package openfisca_country_template openfisca_country_template/tests

Expand Down

0 comments on commit 17f94ad

Please sign in to comment.