Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaYurasov committed Dec 21, 2024
1 parent a17215e commit 67c78ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
--build-arg AIRFLOW_VERSION=${{ matrix.airflow-version }} \
--build-arg PYTHON_VERSION=${{ matrix.python-version }} \
--target airflow-dbt-af-ci \
-t dbt-af-${{ matrix.airflow-version }}-py${{ matrix.python-version }} \
-t dbt-af-${{ matrix.airflow-version }}-py${{ matrix.python-version }}-ci \
.
- name: Run Docker container
run: |
docker run \
-d \
--name dbt-af-container-${{ matrix.airflow-version }}-py${{ matrix.python-version }} \
dbt-af-${{ matrix.airflow-version }}-py${{ matrix.python-version }}
--name dbt-af-container-${{ matrix.airflow-version }}-py${{ matrix.python-version }}-ci \
dbt-af-${{ matrix.airflow-version }}-py${{ matrix.python-version }}-ci
- name: Run tests
run: |
docker exec \
dbt-af-container-${{ matrix.airflow-version }}-py${{ matrix.python-version }} \
dbt-af-container-${{ matrix.airflow-version }}-py${{ matrix.python-version }}-ci \
airflow db migrate && \
pytest -q -s -vv --log-cli-level=INFO --cov=dbt_af --cov-report=term --run-airflow-tasks tests
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ USER root
RUN apt-get update --allow-releaseinfo-change \
&& apt-get install --no-install-recommends -y \
build-essential \
libpq-dev
libpq-dev \
curl

COPY ./dbt_af ${AIRFLOW_HOME}/dbt_af/dbt_af
COPY ./dbt_af_functional_tests ${AIRFLOW_HOME}/dbt_af/dbt_af_functional_tests
Expand All @@ -43,10 +44,6 @@ FROM airflow-dbt-af as airflow-dbt-af-ci
LABEL maintainer="Nikita Yurasov <[email protected]>"
# install poetry
USER root
RUN ACCEPT_EULA=Y apt-get -y -qq -o Dpkg::Use-Pty=0 update && \
apt-get -y -qq -o Dpkg::Use-Pty=0 upgrade && \
apt-get -y -qq -o Dpkg::Use-Pty=0 install \
curl gcc python3-dev
ARG POETRY_UID=65533
ARG POETRY_GID=65533
RUN groupadd -g $POETRY_GID -o poetry
Expand Down

0 comments on commit 67c78ba

Please sign in to comment.