Skip to content

Airflow setup

Airflow setup #25

Workflow file for this run

name: Python application test with pytest
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python 3
uses: actions/setup-python@v4
with:
python-version: 3.10.11
- name: Build Docker image
run: docker build -t test .
- name: Run tests with pytest and generate report
run: >
docker run
--name biproject
--network=host
-v "$(pwd)"/tests:/opt/airflow/tests
--entrypoint pytest test /opt/airflow/tests