mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
add python 3.11 to CI and use setup-python pip cache
This commit is contained in:
parent
a51d75c8ed
commit
6ddbc83f43
2 changed files with 10 additions and 41 deletions
48
.github/workflows/main.yml
vendored
48
.github/workflows/main.yml
vendored
|
|
@ -23,6 +23,8 @@ jobs:
|
||||||
python: "3.9"
|
python: "3.9"
|
||||||
- os: ubuntu
|
- os: ubuntu
|
||||||
python: "3.10"
|
python: "3.10"
|
||||||
|
- os: ubuntu
|
||||||
|
python: "3.11"
|
||||||
- os: macos
|
- os: macos
|
||||||
python: "3.7"
|
python: "3.7"
|
||||||
- os: windows
|
- os: windows
|
||||||
|
|
@ -34,30 +36,8 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.config.python }}
|
python-version: ${{ matrix.config.python }}
|
||||||
- name: Set up Pip cache (Linux)
|
cache: 'pip'
|
||||||
uses: actions/cache@v3
|
cache-dependency-path: '**/requirements/*'
|
||||||
if: startsWith(runner.os, 'Linux')
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pip
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
- name: Set up Pip cache (macOS)
|
|
||||||
uses: actions/cache@v3
|
|
||||||
if: startsWith(runner.os, 'macOS')
|
|
||||||
with:
|
|
||||||
path: ~/Library/Caches/pip
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
- name: Setup pip cache (Windows)
|
|
||||||
uses: actions/cache@v3
|
|
||||||
if: startsWith(runner.os, 'Windows')
|
|
||||||
with:
|
|
||||||
path: ~\AppData\Local\pip\Cache
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
- name: Install locale (Linux)
|
- name: Install locale (Linux)
|
||||||
if: startsWith(runner.os, 'Linux')
|
if: startsWith(runner.os, 'Linux')
|
||||||
run: sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
|
run: sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
|
||||||
|
|
@ -87,14 +67,8 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
- name: Set pip cache (Linux)
|
cache: 'pip'
|
||||||
uses: actions/cache@v3
|
cache-dependency-path: '**/requirements/*'
|
||||||
if: startsWith(runner.os, 'Linux')
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pip
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
run: python -m pip install -U pip tox
|
run: python -m pip install -U pip tox
|
||||||
- name: Check
|
- name: Check
|
||||||
|
|
@ -111,14 +85,8 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
- name: Set pip cache (Linux)
|
cache: 'pip'
|
||||||
uses: actions/cache@v3
|
cache-dependency-path: '**/requirements/*'
|
||||||
if: startsWith(runner.os, 'Linux')
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pip
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
run: python -m pip install -U pip tox
|
run: python -m pip install -U pip tox
|
||||||
- name: Check
|
- name: Check
|
||||||
|
|
|
||||||
3
tox.ini
3
tox.ini
|
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{3.7,3.8,3.9,3.10},docs,flake8
|
envlist = py{3.7,3.8,3.9,3.10,3.11},docs,flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython =
|
basepython =
|
||||||
|
|
@ -7,6 +7,7 @@ basepython =
|
||||||
py3.8: python3.8
|
py3.8: python3.8
|
||||||
py3.9: python3.9
|
py3.9: python3.9
|
||||||
py3.10: python3.10
|
py3.10: python3.10
|
||||||
|
py3.11: python3.11
|
||||||
passenv = *
|
passenv = *
|
||||||
usedevelop=True
|
usedevelop=True
|
||||||
deps =
|
deps =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue