Skip to content

Commit

Permalink
Met la version minimum de python en varaible
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-CodeWorks committed Jul 10, 2023
1 parent 2896458 commit 9ff3caf
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ on:
pull_request:
types: [opened, reopened]

env:
PYTHON_VERSION_MINIMUM: 3.9.9

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-20.04"] # On peut ajouter "macos-latest" si besoin
python-version: ["3.9.9", "3.10.6"]
python-version: [3.9.9, 3.10.6]
openfisca-dependencies: [minimal, maximal]
steps:
- name: Checkout
Expand Down Expand Up @@ -56,7 +59,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: {{ $PYTHON_VERSION_MINIMUM }}
- name: Cache build
id: restore-build
uses: actions/cache@v3
Expand All @@ -76,7 +79,7 @@ jobs:
fail-fast: true
matrix:
os: [ "ubuntu-20.04" ] # On peut ajouter "macos-latest" si besoin
python-version: ["3.9.9", "3.10.6"]
python-version: [{{ $PYTHON_VERSION_MINIMUM }}, 3.10.6]
openfisca-dependencies: [minimal, maximal]
steps:
- uses: actions/checkout@v3
Expand All @@ -102,7 +105,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: {{ $PYTHON_VERSION_MINIMUM }}
- name: Test max path length
run: make check-path-length

Expand All @@ -123,7 +126,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: {{ $PYTHON_VERSION_MINIMUM }}
- name: Cache build
id: restore-build
uses: actions/cache@v3
Expand Down Expand Up @@ -152,7 +155,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: {{ $PYTHON_VERSION_MINIMUM }}
- name: Cache build
id: restore-build
uses: actions/cache@v3
Expand All @@ -172,7 +175,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: {{ $PYTHON_VERSION_MINIMUM }}
- name: Check version number has been properly updated
run: "${GITHUB_WORKSPACE}/.github/is-version-number-acceptable.sh"

Expand All @@ -192,7 +195,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: {{ $PYTHON_VERSION_MINIMUM }}
- id: stop-early
run: if "${GITHUB_WORKSPACE}/.github/has-functional-changes.sh" ; then echo "::set-output name=status::success" ; fi

Expand All @@ -213,7 +216,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: {{ $PYTHON_VERSION_MINIMUM }}
- name: Cache build
id: restore-build
uses: actions/cache@v3
Expand All @@ -240,7 +243,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: "3.9.9"
python-version: {{ $PYTHON_VERSION_MINIMUM }}
# Add conda-forge for OpenFisca-Core
channels: openfisca,conda-forge
activate-environment: true
Expand Down Expand Up @@ -271,7 +274,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: "3.9.9"
python-version: {{ $PYTHON_VERSION_MINIMUM }}
# Add conda-forge for OpenFisca-Core
channels: openfisca,conda-forge
activate-environment: true
Expand Down Expand Up @@ -301,7 +304,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: "3.9.9"
python-version: {{ $PYTHON_VERSION_MINIMUM }}
# Add conda-forge for OpenFisca-Core
channels: conda-forge
activate-environment: true
Expand Down

0 comments on commit 9ff3caf

Please sign in to comment.