Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
188 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
[report] | ||
include = | ||
src/collective/* | ||
src/collective/eeafaceted/dashboard/* | ||
omit = | ||
*/test* | ||
src/collective/__init__.py | ||
src/collective/eeafaceted/__init__.py | ||
src/collective/eeafaceted/__init__.py | ||
src/collective/eeafaceted/dashboard/__init__.py | ||
*/__init__.py |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python: 2.7 | ||
plone: 4.3 | ||
- python: 2.7 | ||
plone: 5.1 | ||
- python: 2.7 | ||
plone: 5.2 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Setup Env | ||
run: | | ||
pip install -r requirements.txt coverage==5.3.1 | ||
- name: Cache eggs | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-eggs | ||
with: | ||
path: ~/buildout-cache/eggs | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.plone }} | ||
restore-keys: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.plone }} | ||
- name: buildout | ||
run: | | ||
sed -ie "s#test-4.3#test-${{matrix.plone}}#" buildout.cfg | ||
buildout -c ci.cfg annotate | ||
buildout -c ci.cfg | ||
- name: test | ||
run: | | ||
bin/test -t !robot | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 2.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 2.7 | ||
- name: Setup Env | ||
run: | | ||
pip install -r requirements.txt coverage==5.3.1 | ||
- name: Cache eggs | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-eggs | ||
with: | ||
path: ~/buildout-cache/eggs | ||
key: ${{ runner.os }}-coverage-${{ env.cache-name }} | ||
restore-keys: ${{ runner.os }}-coverage-${{ env.cache-name }} | ||
- name: buildout | ||
run: | | ||
buildout -c ci.cfg | ||
- name: code-analysis | ||
run: | | ||
bin/code-analysis | ||
- name: test coverage | ||
run: | | ||
bin/coverage run bin/test -t !robot | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Coveralls | ||
run: | | ||
pip3 install -U pip setuptools --no-cache-dir | ||
pip3 install -U "coveralls>=3.0.0" coverage==5.3.1 --no-cache-dir | ||
- name: Publish to Coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
coveralls --service=github |
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[settings] | ||
force_alphabetical_sort = True | ||
force_single_line = True | ||
lines_after_imports = 2 | ||
line_length = 200 | ||
not_skip = __init__.py |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[buildout] | ||
extends = | ||
https://raw.github.com/collective/buildout.plonetest/master/plone-4.x.cfg | ||
https://raw.github.com/collective/buildout.plonetest/master/test-4.x.cfg | ||
buildout.d/development.cfg |
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
[versions] | ||
setuptools=41.2.0 | ||
zc.buildout=2.13.2 | ||
|
||
future = | ||
setuptools = 44.1.1 | ||
zc.buildout = 2.13.3 | ||
# python 2 ... | ||
traitlets = 4.3.2 | ||
future = 0.18.2 | ||
# misc | ||
zc.lockfile = 2.0 | ||
coverage = 5.3.1 | ||
toml = 0.10.2 | ||
zope.configuration=3.8.1 | ||
z3c.unconfigure=1.1 | ||
plone.formwidget.namedfile=2.0.2 | ||
pycodestyle= | ||
|
||
# python 2 compatibility | ||
soupsieve=1.9.6 | ||
|
||
# fix to avoid use of wxPython | ||
robotframework-ride = 1.5.2.1 | ||
|
||
traitlets = 4.3.3 | ||
|
||
# Required by: | ||
# collective.fingerpointing | ||
zc.lockfile = 1.2.1 | ||
file-read-backwards = 1.2.2 | ||
plone.formwidget.namedfile = 2.0.6 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[buildout] | ||
extends = | ||
buildout.cfg | ||
eggs-directory = ~/buildout-cache/eggs | ||
|
||
parts += | ||
createcoverage | ||
|
||
[createcoverage] | ||
recipe = zc.recipe.egg | ||
eggs = createcoverage | ||
|
||
[versions] | ||
coverage = 5.3.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
setuptools==41.2.0 | ||
zc.buildout==2.13.2 | ||
pip==20.3.4 | ||
setuptools==44.1.1 | ||
zc.buildout==2.13.3 | ||
wheel |
This file contains 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
23 changes: 11 additions & 12 deletions
23
src/collective/eeafaceted/dashboard/browser/facetedcollectionportlet.py
This file contains 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 file contains 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 file contains 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 file contains 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
2 changes: 1 addition & 1 deletion
2
src/collective/eeafaceted/dashboard/tests/test_dashboardcollection.py
This file contains 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
9 changes: 3 additions & 6 deletions
9
src/collective/eeafaceted/dashboard/tests/test_documentgeneration.py
This file contains 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
Oops, something went wrong.