-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add restapi endpoint and fix ci * fix endpoint name * enable sorting * code cleanup * fix: endpoint serch_tassonomie param value * add bandit file * remove dependency * remove branch * typo * remove unused folder and fix tests * fail under 30 --------- Co-authored-by: Giulia Ghisini <giulia.ghisini@redturtle.it> Co-authored-by: Mauro Amico <mauro.amico@gmail.com>
- Loading branch information
1 parent
a63c438
commit a9b4383
Showing
26 changed files
with
620 additions
and
348 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Security check - Bandit | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Security check - Bandit | ||
uses: ioggstream/bandit-report-artifacts@v1.7.4 | ||
with: | ||
project_path: src | ||
# ignore_failure: true | ||
|
||
# This is optional | ||
#- name: Security check report artifacts | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: Security report | ||
# path: output/security_report.txt | ||
|
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,60 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- '**.rst' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python: ["3.10", "3.11"] | ||
plone: ["60"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache eggs | ||
uses: actions/cache@v3 | ||
with: | ||
path: eggs | ||
key: ${{ runner.OS }}-build-python${{ matrix.python }}-${{ matrix.plone }} | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt -c constraints_plone${{ matrix.plone }}.txt | ||
cp test_plone${{ matrix.plone }}.cfg buildout.cfg | ||
- name: Install buildout | ||
run: | | ||
buildout -N code-analysis:return-status-codes=True | ||
- name: Code analysis | ||
run: | | ||
bin/code-analysis | ||
- name: Run tests | ||
run: | | ||
bin/test-coverage | ||
env: | ||
PROXY_BEARER_AUTH: on | ||
#- name: Upload coverage data to coveralls.io | ||
# run: | | ||
# pip install coveralls | ||
# coveralls --service=github | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# COVERALLS_FLAG_NAME: py${{ matrix.python }}-plone${{ matrix.plone }}-tz${{ matrix.tz }} | ||
# COVERALLS_PARALLEL: true | ||
|
||
#coveralls_finish: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Finished | ||
# run: | | ||
# pip install --upgrade coveralls | ||
# coveralls --service=github --finish | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 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
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
Oops, something went wrong.