diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 33d9b94..56087b8 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 diff --git a/Makefile b/Makefile index 978269a..7414e72 100644 --- a/Makefile +++ b/Makefile @@ -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