Skip to content

Commit

Permalink
Added build-and-test action
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa committed Jun 12, 2024
1 parent d0f5ab3 commit 67f5a33
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 10 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build and test senaite.storage
on:
- push
- pull_request
env:
PLONE_VERSION: "5.2"
jobs:
build-and-test:
runs-on: 'ubuntu-20.04'
container:
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v3
- name: cache eggs
uses: actions/cache@v3
with:
key: eggs-cache-${{ hashFiles('buildout.cfg', 'requirements.txt') }}
path: |
eggs/
- name: install
run: |
pip install virtualenv
virtualenv -p `which python` .
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/buildout -N -t 3 annotate
bin/buildout -N -t 3
- name: test
run: |
bin/test -s senaite.storage.tests
31 changes: 21 additions & 10 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@ find-links =

parts =
instance
test
omelette
i18ndude
update_translations
write_code_headers
test
omelette

eggs =
senaite.lims
senaite.storage
senaite.core
senaite.app.listing
senaite.app.spotlight
senaite.app.supermodel
senaite.impress
senaite.jsonapi
senaite.lims

plone.reload
i18ndude
lxml
Products.PrintingMailHost

zcml =

Expand All @@ -41,14 +47,18 @@ senaite.lims = git https://github.com/senaite/senaite.lims.git pushurl=git@githu

[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 127.0.0.1:8080
user = ${buildout:plone-user}
wsgi = off
eggs =
Plone
plone.app.upgrade
${buildout:package-name}
${buildout:eggs}
zcml =
${buildout:zcml}
deprecation-warnings = on
environment-vars =
zope_i18n_compile_mo_files true
zcml =

[i18ndude]
unzip = true
Expand Down Expand Up @@ -78,5 +88,6 @@ recipe = collective.recipe.omelette
eggs = ${buildout:eggs}

[versions]
setuptools = 42.0.2
zc.buildout = 2.13.3
# versions taken from requirements.txt
setuptools =
zc.buildout =
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
setuptools==44.1.1
zc.buildout==2.13.3
wheel

0 comments on commit 67f5a33

Please sign in to comment.