Skip to content

Commit

Permalink
Update Python version to 3.9 and Airflow version to 2.9.1 across GitH…
Browse files Browse the repository at this point in the history
…ub Actions workflows

- Changed Python version from 3.8 to 3.9 in build and publish workflows.
- Updated Airflow version from 2.7.1 to 2.9.1 in test workflows for improved compatibility and features.
  • Loading branch information
l-prr committed Dec 23, 2024
1 parent 958fa75 commit 5fa3803
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.8'
python-version: '3.9'
architecture: 'x64'
# Standard drop-in approach that should work for most people.
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cornflow-client-publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9
- name: Install wheel
run: >-
python -m
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cornflow-publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9
- name: Install wheel
run: >-
python -m
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_cornflow_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
cd cornflow-server
python -m venv afvenv
source afvenv/bin/activate
AIRFLOW_VERSION=2.7.1
AIRFLOW_VERSION=2.9.1
PYTHON_VERSION="$(python3 --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CLIENT_BRANCH="${{ github.head_ref || github.ref_name }}"
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_cornflow_dags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
python -m pip install -U "git+https://github.com/baobabsoluciones/cornflow@${CLIENT_BRANCH}#subdirectory=libs/client"
- name: Install airflow
run: |
AIRFLOW_VERSION=2.7.1
AIRFLOW_VERSION=2.9.1
PYTHON_VERSION="$(python3 --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CLIENT_BRANCH="${{ github.head_ref || github.ref_name }}"
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_cornflow_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
max-parallel: 21
matrix:
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
python-version: [3.9, '3.10', '3.11', '3.12']
os: [ubuntu-latest]

services:
Expand Down

0 comments on commit 5fa3803

Please sign in to comment.