Skip to content

Commit

Permalink
Added gha
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Sep 25, 2024
1 parent 42e0c64 commit c1df2fc
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 5 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Push tests

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- python: 2.7.18
plone: 4.3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up pyenv and Python
uses: "gabrielfalcao/pyenv-action@v14"
with:
default: "${{ matrix.python }}"
- name: Setup Env
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Cache eggs
uses: actions/cache@v3
env:
cache-name: cache-eggs
with:
path: ~/buildout-cache/eggs
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.python }}-${{ matrix.plone }}
# - name: Cache eggs restore
# id: cache-restore
# uses: actions/cache/restore@v3
# env:
# cache-name: cache-eggs
# with:
# path: ~/buildout-cache/eggs
# key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.python }}-${{ matrix.plone }}
- name: buildout
run: |
buildout -c gha.cfg annotate
buildout -c gha.cfg
# - name: Cache eggs save
# uses: actions/cache/save@v3
# with:
# path: ~/buildout-cache/eggs
# key: ${{ steps.cache-restore.outputs.cache-primary-key }}
- name: test
run: |
bin/test -t !robot
1 change: 0 additions & 1 deletion checkouts.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ auto-checkout +=
collective.contact.widget
collective.dms.basecontent
plone.formwidget.masterselect
collective.z3cform.rolefield
8 changes: 8 additions & 0 deletions gha.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[buildout]

extends =
https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-4.3.x.cfg
base.cfg
versions.cfg

index = https://pypi.org/simple/
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
setuptools == 39.2.0
zc.buildout == 2.13.3
setuptools==44.1.1
wheel==0.37.1
zc.buildout==3.1.0
21 changes: 19 additions & 2 deletions versions.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[versions]
setuptools = 39.2.0
zc.buildout = 2.13.3
setuptools = 44.1.1
wheel = 0.37.1
zc.buildout = 3.1.0

collective.dexteritytextindexer = 2.0.1
collective.documentviewer = 3.0.3
Expand All @@ -11,17 +12,23 @@ coverage = 3.7.1
demjson = 2.2.3
ecreall.helpers.testing = 1.7
ecreall.helpers.upgrade = 1.2
eea.facetednavigation = 14.8
eea.faceted.vocabularies = 7.0
eea.jquery = 11.3
future = 0.18.2
icalendar = 3.9.1
ipdb = 0.8.1
ipython = 4.0.0
natsort = 6.2.1
plone.app.textfield = 1.2.7
plone.event = 1.3
plone.formwidget.datetime = 1.1
plone.formwidget.masterselect = 1.7
plone.formwidget.querystring = 1.1.5
plone.principalsource = 1.0
repoze.catalog = 0.8.3
simplegeneric = 0.8.1
six = 1.16.0
vobject = 0.8.1c
z3c.table = 2.2
z3c.unconfigure = 1.0.1
Expand Down Expand Up @@ -50,3 +57,13 @@ traitlets = 4.0.0
# Required by:
# collective.z3cform.rolefield==0.4.dev0
zope.schemaevent = 0.2

# Required by:
# collective.fingerpointing==1.7
file-read-backwards = 2.0.0

# Required by:
# imio.helpers==1.0.1
pathlib2 = 2.3.5
scandir = 1.10.0
typing = 3.7.4.3

0 comments on commit c1df2fc

Please sign in to comment.