Skip to content

Commit

Permalink
feat: Support Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed May 7, 2022
1 parent 501739c commit 8253b30
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, '3.10']
airflow-version: ['1.10.15', '2.0.2', '2.2.5']
exclude:
- python-version: '3.10'
airflow-vesrion: '2.0.2'
- python-version: '3.10'
airflow-vesrion: '1.10.15'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -42,12 +47,19 @@ jobs:
run: poetry run black --check .

- name: Install Airflow > 2
if: matrix.airflow-version != '1.10.15'
if: matrix.airflow-version != '1.10.15' && matrix.python-version != '3.10'
run: |
wget https://raw.githubusercontent.com/apache/airflow/constraints-${{ matrix.airflow-version }}/constraints-${{ matrix.python-version }}.txt -O constraints.txt
poetry run pip install apache-airflow==${{ matrix.airflow-version }} apache-airflow-providers-amazon -c constraints.txt
poetry run airflow db init
- name: Install Airflow > 2
if: matrix.airflow-version != '1.10.15' && matrix.python-version == '3.10'
run: |
wget https://raw.githubusercontent.com/apache/airflow/constraints-${{ matrix.airflow-version }}/constraints-3.9.txt -O constraints.txt
poetry run pip install apache-airflow==${{ matrix.airflow-version }} apache-airflow-providers-amazon -c constraints.txt
poetry run airflow db init
- name: Install Airflow 1.10.15
if: matrix.airflow-version == '1.10.15'
run: |
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ classifiers = [
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]

[tool.poetry.dependencies]
python = ">=3.7.2, <3.10.0"
python = ">=3.7.2, <3.11.0"

apache-airflow = { version = ">=2.2", optional = true }
apache-airflow-providers-amazon = { version = ">=3.0.0", optional = true }
Expand Down

0 comments on commit 8253b30

Please sign in to comment.