Skip to content

Commit

Permalink
chore(cicd): Update Airflow 1 version to 1.10.15
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Apr 29, 2022
1 parent dcd5c8d commit eb7cbcc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yaml
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
airflow-version: ['1.10.12', '2.2.2', '2.2.5']
airflow-version: ['1.10.15', '2.0.2', '2.2.5']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -33,14 +33,14 @@ jobs:
run: poetry install -E postgres --with dev

- name: Install Airflow > 2
if: matrix.airflow-version != '1.10.12'
if: matrix.airflow-version != '1.10.15'
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 1.10.12
if: matrix.airflow-version == '1.10.12'
- name: Install Airflow 1.10.15
if: matrix.airflow-version == '1.10.15'
run: |
wget https://raw.githubusercontent.com/apache/airflow/constraints-1-10/constraints-3.8.txt -O constraints.txt
poetry run pip install apache-airflow==${{ matrix.airflow-version }} -c constraints.txt
Expand All @@ -53,7 +53,9 @@ jobs:
run: poetry run mypy .

- name: Code formatting with black
run: poetry run black --check .
run: |
poetry run pip install click==8.1.0
poetry run black --check .
- name: Run tests with pytest
run: poetry run pytest -v --cov=./airflow_dbt_python --cov-report=xml:./coverage.xml --cov-report term-missing tests/
Expand Down

0 comments on commit eb7cbcc

Please sign in to comment.