From 7f89e6759203eb8e76ff37791641adc2aa1bb5bb Mon Sep 17 00:00:00 2001 From: benoit-cty <6603048+benoit-cty@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:52:37 +0200 Subject: [PATCH] Add test --- .github/workflows/workflow.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 1a0c9bbd..43606706 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -55,9 +55,29 @@ jobs: with: path: ${{ env.pythonLocation }} key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-ubuntu-20.04 - - run: make check-syntax-errors - - run: make check-style - - name: Lint Python files - run: "${GITHUB_WORKSPACE}/.github/lint-changed-python-files.sh" - - name: Lint YAML tests - run: "${GITHUB_WORKSPACE}/.github/lint-changed-yaml-tests.sh" + - name: check-syntax-errors + run: make check-syntax-errors + - name: format-style + run: make format-style + - name: check-style + run: make check-style + + test: + runs-on: ubuntu-20.04 + needs: [ build ] + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Fetch all the tags + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10.6 + - name: Cache build + id: restore-build + uses: actions/cache@v3 + with: + path: ${{ env.pythonLocation }} + key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-ubuntu-20.04 + - name: Test carburants + run: openfisca test --country-package openfisca_france_indirect_taxation openfisca_france_indirect_taxation/tests/formulas/*carbu*