summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2022-12-16 09:13:06 +0100
committerGitHub <noreply@github.com>2022-12-16 08:13:06 +0000
commit250b385eff4f3c33ca3bbd7bedd53e6739df2664 (patch)
tree75dac0aef7cd349f242a5101498c0ad86c4930aa /.github/workflows
parent08cc68411f81751bb157e177b0cef0e0dd803f3b (diff)
downloadzope-tales-master.tar.gz
Config with pure python (#29)HEADmaster
* Fix GHA: ubuntu-latest no longer contains Python 3.5 and 3.6 * Add support for Python 3.11. * isort imports.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tests.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 927d9f3..cedf24b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os:
- - ubuntu
+ - ["ubuntu", "ubuntu-20.04"]
config:
# [Python version, tox env]
- ["3.9", "lint"]
@@ -28,21 +28,23 @@ jobs:
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
+ - ["3.11", "py311"]
- ["pypy-2.7", "pypy"]
- ["pypy-3.7", "pypy3"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
- runs-on: ${{ matrix.os }}-latest
+ runs-on: ${{ matrix.os[1] }}
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.config[1] }}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Set up Python
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config[0] }}
- name: Pip cache
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}