Skip to content

Commit

Permalink
test python version 3.8/3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Gelders committed Oct 16, 2023
1 parent d3bfb25 commit 786d360
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 786d360

Please sign in to comment.