diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 866dea4e..11877ced 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -15,14 +15,14 @@ jobs: python-version: ["3.9.9", "3.10.6"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache build id: restore-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.pythonLocation }} key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-${{ matrix.os }} @@ -33,7 +33,7 @@ jobs: run: make build - name: Cache release id: restore-release - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: dist key: release-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-${{ matrix.os }} @@ -42,16 +42,16 @@ jobs: runs-on: ubuntu-20.04 needs: [ build ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all the tags - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9.9 - name: Cache build id: restore-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.pythonLocation }} key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-ubuntu-20.04 @@ -72,14 +72,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache build id: restore-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.pythonLocation }} key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-${{ matrix.os }} @@ -100,14 +100,14 @@ jobs: # os: [ "ubuntu-20.04" ] # On peut ajouter "macos-latest" si besoin # python-version: ["3.9.9"] # steps: - # - uses: actions/checkout@v3 + # - uses: actions/checkout@v4 # - name: Set up Python # uses: actions/setup-python@v3 # with: # python-version: ${{ matrix.python-version }} # - name: Cache build # id: restore-build - # uses: actions/cache@v3 + # uses: actions/cache@v4 # with: # path: ${{ env.pythonLocation }} # key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-${{ matrix.os }} @@ -118,11 +118,11 @@ jobs: runs-on: ubuntu-20.04 needs: [ lint-files, build ] # TODO: Replace build by test-python steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all the tags - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9.9 - name: Check version number has been properly updated @@ -138,11 +138,11 @@ jobs: outputs: status: ${{ steps.stop-early.outputs.has_functional_changes_status }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all the tags - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9.9 - id: stop-early @@ -156,22 +156,22 @@ jobs: PYPI_USERNAME: openfisca-bot PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all the tags - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9.9 - name: Cache build id: restore-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.pythonLocation }} key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-ubuntu-20.04 - name: Cache release id: restore-release - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: dist key: release-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }}-ubuntu-20.04 @@ -191,7 +191,7 @@ jobs: # Add openfisca channel for OpenFisca-Core channels: conda-forge, openfisca activate-environment: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all the tags - name: Conda config @@ -214,7 +214,7 @@ jobs: # Add openfisca channel for OpenFisca-Core channels: conda-forge, openfisca activate-environment: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all the tags - name: Install with conda