Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install always the latest pre-commit #311

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
~/.cache/pip
~/.cache/pre-commit
key: ${{ runner.os }}-3.11-${{ hashFiles('**/.pre-commit-config.yaml') }}
- run: pip install pre-commit~=2.20
- run: pip install -U pre-commit
- run: pre-commit run -a

testing:
Expand All @@ -41,7 +41,7 @@ jobs:
~/.cache/pip
.venv
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- run: pip install poetry~=1.3
- run: pip install -U poetry
- run: poetry config virtualenvs.in-project true
- run: poetry install --sync
- run: make test
Expand All @@ -65,7 +65,7 @@ jobs:
~/.cache/pip
.venv
key: ${{ runner.os }}-3.10-${{ hashFiles('**/poetry.lock') }}
- run: pip install poetry~=1.2
- run: pip install -U poetry
- run: poetry build
# From https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi-and-testpypi
- name: Publish distribution 📦 to PyPI
Expand Down