Skip to content

Commit

Permalink
switch to mxdev test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Jul 12, 2022
1 parent 85430a3 commit 9ecb867
Show file tree
Hide file tree
Showing 18 changed files with 393 additions and 299 deletions.
73 changes: 32 additions & 41 deletions .github/workflows/main.yml
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ lib/
share/
pip-selfcheck.json
pyvenv.cfg
lib64
lib64
.make-sentinels/
*-mxdev.txt
31 changes: 0 additions & 31 deletions .travis.yml.bak

This file was deleted.

9 changes: 0 additions & 9 deletions .tx/config

This file was deleted.

6 changes: 2 additions & 4 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ Changes
3.0.0 (unreleased)
------------------

- Nothing changed yet.
- Fix configlet icon for Plone 6 (#135)
[laulaz]


2.2.2 (2022-07-12)
------------------

- Fix configlet icon for Plone 6 (#135)
[laulaz]

- Use new 'Manage taxonomies' permission for taxonomies configlet (#134)
Permission is by default assigned to Manager and Site Administrator roles.
[laulaz]
Expand Down
Loading

0 comments on commit 9ecb867

Please sign in to comment.