Skip to content

Commit

Permalink
Test Plone 5.2 on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
reebalazs committed Sep 22, 2023
1 parent 8a5ac95 commit 4e97097
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test-plone-5.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Plone 5.2 testing
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
# git checkout
- uses: actions/checkout@v2

# pin plone version (happens from make, but to be on the safe side)
- name: Pin plone 5.2
run: cp constraints-5.2.txt constraints.txt

# python setup
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

# python cache
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
# plone install
- name: Install plone
run: make install-plone-5.2

# test
- name: Run tests
run: bin/test
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
},
install_requires=[
"Plone>=5.2.0",
"plone.restapi>=8.21.2", # for Plone 5.2
# "plone.restapi>=8.40.0", # for Plone 6.0
"plone.restapi>=8.21.2", # for Plone 5.2
# "plone.restapi>=8.40.0", # for Plone 6.0
"plone.api",
"setuptools",
"collective.solr>=9.0.1",
Expand Down

0 comments on commit 4e97097

Please sign in to comment.