-
Notifications
You must be signed in to change notification settings - Fork 23
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
18 changed files
with
393 additions
and
299 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,49 +1,40 @@ | ||
name: CI | ||
name: Test Collective Taxonomy | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "master" | ||
- "releases/**" | ||
# Allow to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
# [Python version, tox env] | ||
- ["2.7", "plone50-py27"] | ||
- ["2.7", "plone51-py27"] | ||
- ["2.7", "plone52-py27"] | ||
- ["3.6", "plone52-py36"] | ||
- ["3.7", "plone52-py37"] | ||
- ["3.8", "plone52-py38"] | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.config[1] }} | ||
python: | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
plone: | ||
- "6.0-dev" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install lxml dev libraries | ||
# Needed to avoid error on Plone 5.0. | ||
# Error: Please make sure the libxml2 and libxslt development packages are installed. | ||
run: sudo apt-get install libxml2-dev libxslt1-dev | ||
if: matrix.config[1] == 'plone50-py27' | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.config[0] }} | ||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.config[0] }}- | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Test | ||
run: tox -e ${{ matrix.config[1] }} | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Plone ${{ matrix.plone }} with Python ${{ matrix.python }} | ||
id: setup | ||
uses: plone/[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
plone-version: ${{ matrix.plone }} | ||
|
||
- name: Install package | ||
run: | | ||
make install | ||
- name: Run Lint | ||
run: | | ||
make lint | ||
- name: Run tests | ||
run: | | ||
make test-ignore-warnings |
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 |
---|---|---|
|
@@ -30,4 +30,6 @@ lib/ | |
share/ | ||
pip-selfcheck.json | ||
pyvenv.cfg | ||
lib64 | ||
lib64 | ||
.make-sentinels/ | ||
*-mxdev.txt |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.