mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use poetry directly in lints
This commit is contained in:
parent
6cf6a1ffe9
commit
29b10ef6e6
2 changed files with 10 additions and 20 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
|
@ -62,16 +62,20 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Poetry
|
||||
run: pipx install poetry
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.9"
|
||||
cache: "pip"
|
||||
cache-dependency-path: "**/requirements/*"
|
||||
- name: Install tox
|
||||
run: python -m pip install -U pip tox
|
||||
- name: Check
|
||||
run: tox -e flake8
|
||||
cache: "poetry"
|
||||
cache-dependency-path: "pyproject.toml"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
poetry env use "3.9"
|
||||
poetry install --no-interaction
|
||||
- name: Run linters
|
||||
run: poetry run invoke lint --diff
|
||||
|
||||
docs:
|
||||
name: Build docs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue