Do not fail when request has no ensure_publishable method. #1423
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated from: | |
# https://github.com/zopefoundation/meta/tree/master/config/zope-product | |
name: tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 12 * * 0' # run once a week on Sunday | |
# Allow to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
# We want to see all failures: | |
fail-fast: false | |
matrix: | |
os: | |
- ["ubuntu", "ubuntu-20.04"] | |
- ["windows", "windows-latest"] | |
- ["macos", "macos-11"] | |
config: | |
# [Python version, tox env] | |
- ["3.9", "release-check"] | |
- ["3.9", "lint"] | |
- ["3.7", "py37"] | |
- ["3.8", "py38"] | |
- ["3.9", "py39"] | |
- ["3.10", "py310"] | |
- ["3.11", "py311"] | |
- ["3.12", "py312"] | |
- ["3.9", "docs"] | |
- ["3.9", "coverage"] | |
exclude: | |
- { os: ["windows", "windows-latest"], config: ["3.9", "release-check"] } | |
- { os: ["windows", "windows-latest"], config: ["3.9", "lint"] } | |
- { os: ["windows", "windows-latest"], config: ["3.9", "docs"] } | |
- { os: ["windows", "windows-latest"], config: ["3.9", "coverage"] } | |
- { os: ["macos", "macos-11"], config: ["3.9", "release-check"] } | |
- { os: ["macos", "macos-11"], config: ["3.9", "lint"] } | |
- { os: ["macos", "macos-11"], config: ["3.9", "docs"] } | |
- { os: ["macos", "macos-11"], config: ["3.9", "coverage"] } | |
# macOS/Python 3.11+ is set up for universal2 architecture | |
# which causes build and package selection issues. | |
- { os: ["macos", "macos-11"], config: ["3.11", "py311"] } | |
- { os: ["macos", "macos-11"], config: ["3.12", "py312"] } | |
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.os[0] }}-${{ matrix.config[1] }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.config[0] }} | |
- name: Pip cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ matrix.config[0] }}- | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Test | |
run: tox -e ${{ matrix.config[1] }} | |
- name: Coverage | |
if: matrix.config[1] == 'coverage' | |
run: | | |
pip install coveralls | |
coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |