Skip to content

Commit

Permalink
Add ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Mar 22, 2024
1 parent 29c8480 commit 92fddf4
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 87 deletions.
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/plone-package.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python: ["3.7"]
plone: ["52"]
# exclude:
# - python: "3.7"
# plone: "51"
steps:
- uses: actions/checkout@v1
- name: Cache eggs
uses: actions/cache@v1
with:
path: eggs
key: ${{ runner.OS }}-build-python${{ matrix.python }}-${{ matrix.plone }}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
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 -t 3 code-analysis:return-status-codes=True
- name: Run tests
run: |
bin/code-analysis
bin/test
11 changes: 5 additions & 6 deletions base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ extensions =
parts =
instance
test
# we use tox for testing and linting, by default
# code-analysis
code-analysis
coverage
test-coverage
createcoverage
Expand Down Expand Up @@ -37,10 +36,10 @@ recipe = collective.recipe.vscode
eggs = ${instance:eggs}
autocomplete-use-omelette = True

# [code-analysis]
# recipe = plone.recipe.codeanalysis
# directory = ${buildout:directory}/src/collective.volto
# return-status-codes = False
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/src/collective.volto
return-status-codes = False


[omelette]
Expand Down

0 comments on commit 92fddf4

Please sign in to comment.