forked from github/pelican
use python 3.9 for lint, docs and deploy actions
3.7 is old and will soon be EOLed this also fixes flake8 + importlib-metadata issues
This commit is contained in:
parent
9d509253c3
commit
6d11c6f2e5
2 changed files with 5 additions and 5 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.7"
|
python-version: "3.9"
|
||||||
- name: Set pip cache (Linux)
|
- name: Set pip cache (Linux)
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
|
|
@ -110,7 +110,7 @@ jobs:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.7"
|
python-version: "3.9"
|
||||||
- name: Set pip cache (Linux)
|
- name: Set pip cache (Linux)
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
|
|
@ -136,7 +136,7 @@ jobs:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.7"
|
python-version: "3.9"
|
||||||
- name: Check release
|
- name: Check release
|
||||||
id: check_release
|
id: check_release
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
4
tox.ini
4
tox.ini
|
|
@ -17,7 +17,7 @@ commands =
|
||||||
pytest -s --cov=pelican pelican
|
pytest -s --cov=pelican pelican
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3.7
|
basepython = python3.9
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/docs.pip
|
-rrequirements/docs.pip
|
||||||
changedir = docs
|
changedir = docs
|
||||||
|
|
@ -36,7 +36,7 @@ import-order-style = cryptography
|
||||||
max-line-length = 88
|
max-line-length = 88
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = python3.7
|
basepython = python3.9
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/style.pip
|
-rrequirements/style.pip
|
||||||
commands =
|
commands =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue