Back to development: 6.0.0b5 #157
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 workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Plone package | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# # plone-version: | |
# # - 'Plone60' | |
# # - 'Plone52' | |
# python-version: [3.8] | |
include: | |
- plone-version: Plone52 | |
python-version: 3.8 | |
- plone-version: Plone60 | |
python-version: 3.9 | |
- plone-version: Plone60 | |
python-version: '3.11' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/pip | |
~/buildout-cache | |
~/extends | |
key: ${{ runner.os }}-tox-${{ matrix.python-version }}-${{ matrix.plone-version }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/constraints.txt') }}-${{ hashFiles('**/tox.ini') }} | |
# restore-keys: | | |
# ${{ runner.os }}-tox- | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install system libraries... | |
run: sudo apt-get install libxml2-dev libxslt1-dev libjpeg-dev | |
- name: setup buildout cache | |
run: | | |
mkdir -p ~/buildout-cache/{eggs,downloads} | |
mkdir ~/.buildout | |
echo "[buildout]" > $HOME/.buildout/default.cfg | |
echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg | |
echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox tox-gh-actions | |
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: python versions | |
run: | | |
python --version | |
python3 --version | |
- name: Lint and test Plone package with tox | |
run: tox -r | |
env: | |
PLONE-VERSION: ${{ matrix.plone-version }} | |
PYTHON-VERSION: ${{ matrix.python-version }} | |
- name: coverage report on python3.9 | |
run: tox -r -e coverage-report | |
if: matrix.python-version == '3.9' | |
- name: "Upload coverage to Codecov" | |
uses: "codecov/codecov-action@v1" | |
with: | |
fail_ci_if_error: true | |
if: matrix.python-version == '3.9' | |