diff options
author | Michael Howitz <mh@gocept.com> | 2023-02-07 11:15:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 10:15:48 +0000 |
commit | 8f8ed8f7b603792b48401a64b51e900e86b88a82 (patch) | |
tree | 7fa4ac09d90e57c261ea28bc8281c42d7032d8b3 /.github | |
parent | 14ba59c98e12517b9f8abcdb24bc882bb435ed7c (diff) | |
download | zope-pagetemplate-8f8ed8f7b603792b48401a64b51e900e86b88a82.tar.gz |
Multiple changes (#31)
* Add support for Python 3.11.
* Lint the code.
* Improve error handling in test.
* Bumped version for breaking release.
* Drop support for Python 2.7, 3.5, 3.6.
Co-authored-by: Gil Forcada Codinachs <gil.gnome@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tests.yml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d31f648..d8889f3 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"] - - ["pypy2", "pypy"] - - ["pypy3", "pypy3"] + - ["3.11", "py311"] + - ["pypy-3.9", "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 }} |