Test package #63
Workflow file for this run
This file contains hidden or 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
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: Test package | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - python: 3.12 | |
| plone: "6.0" | |
| - python: 3.13 | |
| plone: "6.1" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements-${{matrix.plone}}.txt | |
| - name: Cache eggs | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-eggs | |
| with: | |
| path: ./buildout-cache/eggs | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.plone }} | |
| - name: buildout | |
| run: | | |
| mkdir -p ./buildout-cache/downloads ./buildout-cache/eggs | |
| buildout -c test_plone-${{matrix.plone}}.cfg buildout:download-cache=./buildout-cache/downloads buildout:eggs-directory=./buildout-cache/eggs | |
| - name: Not active | |
| run: | | |
| bin/instance start | |
| sleep 15 | |
| bin/instance stop | |
| cat var/log/instance.log | |
| rm var/log/instance.log | |
| bin/instance run test_scripts/did_nothing_not_active.py | |
| - name: Active default | |
| run: | | |
| bin/instance start | |
| sleep 15 | |
| bin/instance stop | |
| cat var/log/instance.log | |
| rm var/log/instance.log | |
| bin/instance run test_scripts/created_default_site.py | |
| env: | |
| ACTIVE_BIGBANG: "True" | |
| - name: Active bad site id | |
| run: | | |
| bin/instance start | |
| sleep 15 | |
| bin/instance stop | |
| cat var/log/instance.log | |
| rm var/log/instance.log | |
| bin/instance run test_scripts/created_default_site.py | |
| env: | |
| ACTIVE_BIGBANG: "True" | |
| SITE_ID: "test/Plone" | |
| - name: Create custom site | |
| run: | | |
| bin/instance start | |
| sleep 15 | |
| bin/instance stop | |
| cat var/log/instance.log | |
| rm var/log/instance.log | |
| bin/instance run test_scripts/created_site_with_id_and_profiles.py | |
| env: | |
| ACTIVE_BIGBANG: "True" | |
| SITE_ID: testingsite | |
| PLONE_EXTENSION_IDS: plone.app.caching:default | |
| DEFAULT_LANGUAGE: fr | |
| - name: Update admin password | |
| run: | | |
| bin/instance run test_scripts/admin_password_updated.py | |
| env: | |
| ADMIN_PASSWORD: test | |
| ACTIVE_BIGBANG: "True" | |
| - name: Admin password not updated if big bang not activated | |
| run: | | |
| bin/instance run test_scripts/admin_password_not_updated.py | |
| env: | |
| ADMIN_PASSWORD: test1234 | |
| - name: Run all upgrade steps | |
| run: | | |
| bin/instance run test_scripts/upgrade_steps.py | |
| env: | |
| ACTIVE_BIGBANG_EXPANSION: "True" |