Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed May 24, 2024
1 parent 0550dfb commit 61bffd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}


- name: Run tests with pytest and generate report
run: >
docker run
Expand All @@ -72,7 +73,13 @@ jobs:
-v "$(pwd)"/dags:/opt/airflow/dags
-v "$(pwd)"/airflow.cfg:/opt/airflow/airflow.cfg
-v "$(pwd)"/data:/opt/airflow/data
--entrypoint pytest
bash -c "airflow db init && \
airflow webserver -D && \
airflow scheduler -D && \
airflow triggerer -D && \
airflow celery worker -D && \
airflow celery flower -D && \
pytest"
$REGISTRY/$IMAGE@${{ steps.build.outputs.image-digest }}
tests
--cov=./
Expand Down
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@ COPY requirements.txt ./requirements.txt
COPY requirements-airflow.txt ./requirements-airflow.txt
COPY requirements-test.txt ./requirements-test.txt
RUN pip install --no-cache-dir --user -r requirements.txt -r requirements-test.txt -r requirements-airflow.txt
RUN airflow db init
RUN airflow webserver -D
RUN airflow triggerer -D
RUN airflow scheduler -D
RUN airflow celery worker -D
RUN airflow celery flower -D

0 comments on commit 61bffd0

Please sign in to comment.