diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be35586..3b4300a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,9 +23,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - name: Install poetry + run: pipx install poetry - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'poetry' - name: Install project run: make install - name: Run linter @@ -41,9 +44,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - name: Install poetry + run: pipx install poetry - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'poetry' - name: Install project run: make install - name: Run tests diff --git a/Makefile b/Makefile index 9f3e2cf..943f354 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ show: ## Show the current environment. .PHONY: install install: ## Install the project in dev mode. - @if [ "$(USING_POETRY)" ]; then poetry install && exit; fi + @if [ "$(USING_POETRY)" ]; then poetry install --with dev && exit; fi @echo "Don't forget to run 'make virtualenv' if you got errors." $(ENV_PREFIX)pip install -e .[dev]