Skip to content

Publications

Publications #276

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: Pull Request
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
plone-version: ["6.0"]
experimental: [false]
steps:
- name: Checkout
uses: actions/checkout@v2
- 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.python-version }}-${{ matrix.plone-version }}-${{ hashFiles('setup.*') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}-${{ matrix.plone-version }}
- name: Buildout action
uses: IMIO/plonemeeting.portal.core/actions/buildout/@master
with:
py-version: ${{ matrix.python-version }}
plone-version: ${{ matrix.plone-version }}
# - name: code analysis
# run: |
# pre-commit run --all-files
- name: Test
run: |
bin/test
coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
plone-version: ["6.0"]
experimental: [false]
steps:
- name: Checkout
uses: actions/checkout@v2
- 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.python-version }} }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}
- name: Buildout action
uses: IMIO/plonemeeting.portal.core/actions/buildout/@master
with:
py-version: ${{ matrix.python-version }}
plone-version: ${{ matrix.plone-version }}
- name: Coverage action
uses: IMIO/plonemeeting.portal.core/actions/coverage/@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cobertura
uses: 5monkeys/cobertura-action@v9
with:
path: coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 90