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*