Skip to content

Back to development: 1.23 #28

Back to development: 1.23

Back to development: 1.23 #28

Workflow file for this run

# 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: CI
on:
push:
pull_request:
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PLONE_VERSION: [4]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up pyenv and Python
uses: "gabrielfalcao/pyenv-action@v14"
with:
default: 2.7.18
versions: 3.8.16
command: pyenv -v
- name: Setup Env
run: |
pip install -r requirements.txt coverage==5.3.1
- name: Cache eggs
uses: actions/cache@v2
env:
cache-name: cache-eggs
with:
path: ~/buildout-cache/eggs
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.PLONE_VERSION }}
- name: buildout
run: |
buildout -c ci.cfg annotate
buildout -c ci.cfg
- name: code-analysis
run: |
bin/code-analysis
- name: test coverage
run: |
bin/coverage run bin/test
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Coveralls
run: |
pip3 install -U pip setuptools --no-cache-dir
pip3 install -U "coveralls>=3.0.0" coverage==5.3.1 --no-cache-dir
- name: Publish to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github