Skip to content

Commit

Permalink
GHA starts instance
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Feb 20, 2023
1 parent 1de0ed8 commit 0b3d331
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 59 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/buildout-27-52.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 2.7 5.2 Run buildout and instance
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- name: Set up python
uses: actions/[email protected]
with:
python-version: 2.7.18
- name: Caching
uses: actions/[email protected]
with:
path: |
eggs
key: cache-Py2.7-Plone5.2
- name: Install venv
run: |
pip install virtualenv
virtualenv -p 2 .
bin/pip install -r requirements.txt
bin/buildout -c test-5.2.x.cfg install instance
- name: Check that instance starts
run: |
bin/instance run startup.py
26 changes: 26 additions & 0 deletions .github/workflows/buildout-38-52.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 3.8 5.2 Run buildout and instance
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up python
uses: actions/[email protected]
with:
python-version: 3.8
- name: Caching
uses: actions/[email protected]
with:
path: |
eggs
key: cache-Py3.8-Plone5.2
- name: Install venv
run: |
pip install virtualenv
virtualenv -p 3 .
bin/pip install -r requirements.txt
bin/buildout -c test-5.2.x.cfg install instance
- name: Check that instance starts
run: |
bin/instance run startup.py
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
zc.buildout==3.0.0b2
zc.buildout==3.0.1
setuptools==42.0.2
wheel==0.37.1
pip<21.0
3 changes: 3 additions & 0 deletions startup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from collective import plonefinder

print('yeah')
19 changes: 17 additions & 2 deletions test-plone-5.2.x.cfg → test-5.2.x.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
[buildout]
extends = https://raw.githubusercontent.com/collective/buildout.plonetest/master/plone-5.2.x.cfg
package-name = collective.plonefinder
package-extras =

extensions = mr.developer
allow-picked-versions = false

parts +=
omelette
test

auto-checkout = collective.quickupload

[test]
recipe = zc.recipe.testrunner
defaults = ['-s', '${buildout:package-name}', '--auto-color', '--auto-progress']
eggs =
${buildout:package-name} ${buildout:package-extras}
${buildout:eggs}

# plone.app.testing now imports from Products.CMFPlacefulWorkflow, which
# is often not installed because no explicity dependency is declared.
# We now always install the Plone egg in order to have the full Plone stack ready.
# https://github.com/plone/plone.app.upgrade/commit/b6a0f6e8865e94b53ff9f7f68385774fa7d5ab02
Plone

[remotes]
collective = git://github.com/collective
collective_push = [email protected]:collective
Expand All @@ -22,7 +37,7 @@ recipe = collective.recipe.omelette
eggs = ${instance:eggs}

[versions]
zc.buildout = 3.0.0b2
setuptools = 44.1.1
zc.buildout =
setuptools =
ua-parser = 0.10.0
zipp = 1.2.0
28 changes: 0 additions & 28 deletions test-plone-5.0.x.cfg

This file was deleted.

28 changes: 0 additions & 28 deletions test-plone-5.1.x.cfg

This file was deleted.

0 comments on commit 0b3d331

Please sign in to comment.