|
13 | 13 | strategy: |
14 | 14 | fail-fast: false |
15 | 15 | matrix: |
16 | | - python-version: [3.7, 3.8, 3.9] |
| 16 | + python-version: [3.7, 3.8, 3.9, '3.10'] |
17 | 17 | airflow-version: ['1.10.15', '2.0.2', '2.2.5'] |
| 18 | + exclude: |
| 19 | + - python-version: '3.10' |
| 20 | + airflow-version: '2.0.2' |
| 21 | + - python-version: '3.10' |
| 22 | + airflow-version: '1.10.15' |
18 | 23 | runs-on: ubuntu-latest |
19 | 24 | steps: |
20 | 25 | - uses: actions/checkout@v2 |
@@ -42,12 +47,19 @@ jobs: |
42 | 47 | run: poetry run black --check . |
43 | 48 |
|
44 | 49 | - name: Install Airflow > 2 |
45 | | - if: matrix.airflow-version != '1.10.15' |
| 50 | + if: matrix.airflow-version != '1.10.15' && matrix.python-version != '3.10' |
46 | 51 | run: | |
47 | 52 | wget https://raw.githubusercontent.com/apache/airflow/constraints-${{ matrix.airflow-version }}/constraints-${{ matrix.python-version }}.txt -O constraints.txt |
48 | 53 | poetry run pip install apache-airflow==${{ matrix.airflow-version }} apache-airflow-providers-amazon -c constraints.txt |
49 | 54 | poetry run airflow db init |
50 | 55 |
|
| 56 | + - name: Install Airflow > 2 |
| 57 | + if: matrix.airflow-version != '1.10.15' && matrix.python-version == '3.10' |
| 58 | + run: | |
| 59 | + wget https://raw.githubusercontent.com/apache/airflow/constraints-${{ matrix.airflow-version }}/constraints-3.9.txt -O constraints.txt |
| 60 | + poetry run pip install apache-airflow==${{ matrix.airflow-version }} apache-airflow-providers-amazon -c constraints.txt |
| 61 | + poetry run airflow db init |
| 62 | +
|
51 | 63 | - name: Install Airflow 1.10.15 |
52 | 64 | if: matrix.airflow-version == '1.10.15' |
53 | 65 | run: | |
|
0 commit comments