Skip to content

Commit

Permalink
Merge pull request #39
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilbottom authored Jan 8, 2025
2 parents c9700e0 + da467e9 commit 31d0aed
Show file tree
Hide file tree
Showing 6 changed files with 706 additions and 656 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
uses: actions/setup-python@v5
with: { python-version: "3.11" }
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@ jobs:
uses: actions/checkout@v4

- name: 📦 Set up Poetry
run: pipx install poetry==1.8.0
run: pipx install poetry==2.0.0

- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: poetry
with: { python-version: 3.11, cache: poetry }

- name: 🔨 Install dependencies
run: poetry install --with test

- name: ✅ Run unit tests
run: poetry run pytest
run: poetry run pytest -vvv
env:
# TODO: This is configured in the tests, but not being picked up in CI
DBT_PY_PACKAGE_ROOT: "tests.integration.jaffle-shop.dbt_py_test"
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
name: Validate Python

- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
rev: 2.0.0
hooks:
- id: poetry-check
name: Check that the Poetry configuration is valid
Expand All @@ -47,7 +47,7 @@ repos:
name: Make code pretty

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.8.6
hooks:
- id: ruff
name: Lint Python code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ Raise an issue, or fork the repo and open a pull request.
This project uses [Poetry](https://python-poetry.org/) for dependency management and [pre-commit](https://pre-commit.com/) for linting. After cloning the repo, install the dependencies and enable pre-commit:
```
poetry install --sync --with dev,test
poetry install --with dev,test
pre-commit install --install-hooks
```
Loading

0 comments on commit 31d0aed

Please sign in to comment.