summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2023-01-18 08:35:25 +0100
committerGitHub <noreply@github.com>2023-01-18 08:35:25 +0100
commit1944eef0b8bdd4b686ff441e0210537381714a4b (patch)
treef9b6a228d3913e666d15ad1af53179d40d0e9088 /.github
parent1239c75e4e190df992bf34a88b4ead2c952afe86 (diff)
downloadzope-browser-1944eef0b8bdd4b686ff441e0210537381714a4b.tar.gz
Config with pure python template (#18)
* Drop support for Python 2.7, 3.5, 3.6. * Add support for Python 3.11.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yml18
1 files changed, 8 insertions, 10 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 927d9f3..2ca497a 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -17,32 +17,30 @@ jobs:
fail-fast: false
matrix:
os:
- - ubuntu
+ - ["ubuntu", "ubuntu-20.04"]
config:
# [Python version, tox env]
- ["3.9", "lint"]
- - ["2.7", "py27"]
- - ["3.5", "py35"]
- - ["3.6", "py36"]
- ["3.7", "py37"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- - ["pypy-2.7", "pypy"]
+ - ["3.11", "py311"]
- ["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') }}
@@ -58,7 +56,7 @@ jobs:
- name: Coverage
if: matrix.config[1] == 'coverage'
run: |
- pip install coveralls coverage-python-version
+ pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}