diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 16e4f6f..7f7858b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,16 +5,14 @@ jobs: linting: env: POETRY_VERSION: 1.5.1 + PYTHON_VERSION: 3.11 runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ env.PYTHON_VERSION }} - name: setup poetry run: | pip install poetry==${{ env.POETRY_VERSION }} @@ -28,7 +26,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -40,5 +38,16 @@ jobs: pip install poetry==${{ env.POETRY_VERSION }} poetry config virtualenvs.create false poetry install --no-interaction --no-ansi - - name: run pytest - run: poetry run pytest + - name: Configure git user for git unit tests + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + - name: Unit tests + run: | + poetry run python --version + poetry run pytest -vv + - name: Coverage report + run: | + poetry run pytest --cov=./ --cov-report=xml + - name: Upload coverage + uses: codecov/codecov-action@v1 diff --git a/README.md b/README.md index 67688e2..efe5bce 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ For more information consult the [docs](https://datarootsio.github.io/prefect-db prefect-dbt-flow draws inspiration from various projects in the data engineering and workflow orchestration space, including: - [astronomer-cosmos](https://github.com/astronomer/astronomer-cosmos) - [dbt + Dagster](https://docs.dagster.io/integrations/dbt) -- [Anna Geller](https://github.com/anna-geller/prefect-dataplatform) +- [prefect-dataplatform - Anna Geller](https://github.com/anna-geller/prefect-dataplatform) # License This project is licensed under the MIT License. You are free to use, modify, and distribute this software as per the terms of the license. If you find this project helpful, please consider giving it a star on GitHub. diff --git a/pyproject.toml b/pyproject.toml index c44d1d0..d75b136 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ repository = "https://github.com/datarootsio/prefect-dbt-flow" keywords = ["dbt", "prefect"] [tool.poetry.dependencies] -python = "^3.9" +python = "^3.8" prefect = "^2.7" [tool.poetry.group.dev.dependencies]