Skip to content

Commit

Permalink
⬆️ feat: upgrade Poetry to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilbottom committed Jan 8, 2025
1 parent 94ea0e1 commit da467e9
Show file tree
Hide file tree
Showing 5 changed files with 704 additions and 654 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
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 da467e9

Please sign in to comment.