Skip to content

Commit

Permalink
Fix poetry in CI (#531)
Browse files Browse the repository at this point in the history
* added package-mode to poetry.toml

* remove runner caching from CI

* revert package-mode change

* add --no-root to poetry in CI
  • Loading branch information
artis3n authored Jan 15, 2025
1 parent 0cba019 commit d225db4
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
cache: 'poetry'

- name: Install packages
run: poetry install --no-interaction
run: poetry install --no-interaction --no-root

- name: Run scenario
run: poetry run molecule test --scenario-name "${{ inputs.scenario }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
cache: 'poetry'

- name: Install packages
run: poetry install --no-interaction
run: poetry install --no-interaction --no-root

- name: Lint
run: make lint
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cache: 'poetry'

- name: Install packages
run: poetry install --no-interaction
run: poetry install --no-interaction --no-root

- name: Publish to Ansible Galaxy
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ repos:
- '--profile=production'

- repo: https://github.com/rhysd/actionlint
rev: v1.7.4
rev: v1.7.6
hooks:
- id: actionlint-docker
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all: lint test
# Install Python first
.PHONY: install
install:
poetry install --no-root
poetry install --with=dev
poetry run pre-commit install --install-hooks
poetry run ansible-galaxy collection install -r requirements.yml

Expand All @@ -16,7 +16,7 @@ clean:

.PHONY: update
update:
poetry update
poetry update --with=dev
poetry run pre-commit autoupdate

.PHONY: lint
Expand Down
Loading

0 comments on commit d225db4

Please sign in to comment.