Does not return working copy information when serializing Portal in #3338
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
name: Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- python-version: "3.8" | |
plone-version: "5.2" | |
- python-version: "3.8" | |
plone-version: "6.0" | |
- python-version: "3.9" | |
plone-version: "6.0" | |
- python-version: "3.10" | |
plone-version: "6.0" | |
- python-version: "3.11" | |
plone-version: "6.0" | |
- python-version: "3.12" | |
plone-version: "6.0" | |
- python-version: "3.10" | |
plone-version: "6.1" | |
- python-version: "3.11" | |
plone-version: "6.1" | |
- python-version: "3.12" | |
plone-version: "6.1" | |
steps: | |
# git checkout | |
- uses: actions/checkout@v4 | |
# python setup | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
# buildout eggs cache | |
- uses: actions/cache@v3 | |
with: | |
path: eggs | |
key: ${{ runner.os }}-py${{ matrix.python-version }}-plone${{ matrix.plone-version }}-${{ hashFiles('*.cfg') }} | |
restore-keys: | | |
${{ runner.os }}-py${{ matrix.python-version }}-plone${{ matrix.plone-version }}- | |
${{ runner.os }}-py${{ matrix.python-version }}- | |
# python install | |
- run: pip install virtualenv | |
- run: pip install wheel | |
- name: pip install | |
run: pip install -r requirements-${{ matrix.plone-version }}.txt | |
# buildout | |
- name: buildout | |
run: if [ "${{ matrix.plone-version }}" == "6.0" ] && [ ${{ matrix.python-version }} == '3.8' ]; then buildout -t 10 -c plone-6.0.x-python3.8.cfg; else buildout -t 10 -c plone-${{ matrix.plone-version }}.x.cfg; fi; | |
env: | |
CI: true | |
# build sphinx | |
- name: sphinx | |
run: if [ "${{ matrix.plone-version }}" == "6.0" ] && [ ${{ matrix.python-version }} == '3.12' ]; then make docs-html; fi | |
# test | |
- name: test | |
run: bin/test | |
# test no uncommitted changes | |
- name: test no uncommitted changes | |
run: ./test-no-uncommitted-doc-changes | |
env: | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
PLONE_VERSION: ${{ matrix.plone-version }} | |
# test for broken links | |
- name: linkcheck | |
run: if [ "${{ matrix.plone-version }}" == "6.0" ] && [ ${{ matrix.python-version }} == '3.12' ]; then make docs-linkcheckbroken; fi |