summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeniz Turgut <dturgut@gmail.com>2022-10-26 23:11:41 +0300
committerDeniz Turgut <dturgut@gmail.com>2022-10-26 23:50:36 +0300
commit6ddbc83f43f65bf6c42c72b9bee3756bbb7b5e6e (patch)
treedd261e1c1e4a210a9ddd35f56a1088d433170c99
parenta51d75c8ed03cb757e1bbc03b3a470d539f35d27 (diff)
downloadpelican-6ddbc83f43f65bf6c42c72b9bee3756bbb7b5e6e.tar.gz
add python 3.11 to CI and use setup-python pip cache
-rw-r--r--.github/workflows/main.yml48
-rw-r--r--tox.ini3
2 files changed, 10 insertions, 41 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c4f10faa..9574a0bc 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -23,6 +23,8 @@ jobs:
python: "3.9"
- os: ubuntu
python: "3.10"
+ - os: ubuntu
+ python: "3.11"
- os: macos
python: "3.7"
- os: windows
@@ -34,30 +36,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.python }}
- - name: Set up Pip cache (Linux)
- uses: actions/cache@v3
- 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-
+ cache: 'pip'
+ cache-dependency-path: '**/requirements/*'
- name: Install locale (Linux)
if: startsWith(runner.os, 'Linux')
run: sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
@@ -87,14 +67,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.9"
- - name: Set pip cache (Linux)
- uses: actions/cache@v3
- if: startsWith(runner.os, 'Linux')
- with:
- path: ~/.cache/pip
- key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*') }}
- restore-keys: |
- ${{ runner.os }}-pip-
+ cache: 'pip'
+ cache-dependency-path: '**/requirements/*'
- name: Install tox
run: python -m pip install -U pip tox
- name: Check
@@ -111,14 +85,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.9"
- - name: Set pip cache (Linux)
- uses: actions/cache@v3
- if: startsWith(runner.os, 'Linux')
- with:
- path: ~/.cache/pip
- key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*') }}
- restore-keys: |
- ${{ runner.os }}-pip-
+ cache: 'pip'
+ cache-dependency-path: '**/requirements/*'
- name: Install tox
run: python -m pip install -U pip tox
- name: Check
diff --git a/tox.ini b/tox.ini
index a3be7529..93819218 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[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]
basepython =
@@ -7,6 +7,7 @@ basepython =
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
+ py3.11: python3.11
passenv = *
usedevelop=True
deps =