Skip to content

Commit

Permalink
Update actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-cty committed Feb 12, 2024
1 parent ce283d8 commit 5b12e26
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5b12e26

Please sign in to comment.